├── .env.example ├── .gitignore ├── README.md ├── app ├── app.go └── routes.go ├── controllers ├── messages_controller.go └── messages_controller_test.go ├── domain ├── message_dao.go ├── message_dto.go ├── message_schema.sql └── message_test.go ├── go.mod ├── go.sum ├── integration__tests ├── message_controller_integration_test.go └── setup_test.go ├── main.go ├── services ├── messages_service.go └── messages_service_test.go └── utils ├── error_formats └── error_formats.go └── error_utils └── error_utils.go /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.DS_Store 3 | .env -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/README.md -------------------------------------------------------------------------------- /app/app.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/app/app.go -------------------------------------------------------------------------------- /app/routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/app/routes.go -------------------------------------------------------------------------------- /controllers/messages_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/controllers/messages_controller.go -------------------------------------------------------------------------------- /controllers/messages_controller_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/controllers/messages_controller_test.go -------------------------------------------------------------------------------- /domain/message_dao.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/domain/message_dao.go -------------------------------------------------------------------------------- /domain/message_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/domain/message_dto.go -------------------------------------------------------------------------------- /domain/message_schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/domain/message_schema.sql -------------------------------------------------------------------------------- /domain/message_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/domain/message_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/go.sum -------------------------------------------------------------------------------- /integration__tests/message_controller_integration_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/integration__tests/message_controller_integration_test.go -------------------------------------------------------------------------------- /integration__tests/setup_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/integration__tests/setup_test.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/main.go -------------------------------------------------------------------------------- /services/messages_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/services/messages_service.go -------------------------------------------------------------------------------- /services/messages_service_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/services/messages_service_test.go -------------------------------------------------------------------------------- /utils/error_formats/error_formats.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/utils/error_formats/error_formats.go -------------------------------------------------------------------------------- /utils/error_utils/error_utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/victorsteven/Unit-And-Integration-Testing/HEAD/utils/error_utils/error_utils.go --------------------------------------------------------------------------------