go-kit

module
v0.0.0-...-ff2bd9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: Apache-2.0

README

go-kit

go-kit is a library for a commonly used utility functions in Go

Run the Tests

  • To run the tests, please make sure docker engine already running, before execute this command go test -v -timeout 0 $(go list ./... | grep -v '/nosql/' | grep -v '/publisher/' | grep -v '/http/' | grep -v '/sql/' | grep -v '/test/')

  • If all of these dependencies (kafka, cassandra, mockserver, and rabbitmq) already running (can check on the /test/ dir for the docker-compose or docker-command), then you can execute the test with this command below go test -v -timeout 0 ./...

Notes

  • Due to memory leaks issue on dockertest with cassandra, the test have to be done manually.
  • Due to issue on creating and spin-up some container with dockertest (kafka, cassandra, mockserver, and rabbitmq), these containers needs to be spin-up manually
  • Due to race condition issue with generic repo integration test, please run manually for now (need to put this in TODO)

Directories

Path Synopsis
Package featureflag is a generated GoMock package.
Package featureflag is a generated GoMock package.
generic
http/client
Package client is a generated GoMock package.
Package client is a generated GoMock package.
repository
Package repository is a generated GoMock package.
Package repository is a generated GoMock package.
repository/nosql/repositorytest
We create this empty file as the workaround for this bug: https://github.com/golang/go/issues/27333
We create this empty file as the workaround for this bug: https://github.com/golang/go/issues/27333
repository/sql/repositorytest
We create this empty file as the workaround for this bug: https://github.com/golang/go/issues/27333
We create this empty file as the workaround for this bug: https://github.com/golang/go/issues/27333
net
Package publisher is a generated GoMock package.
Package publisher is a generated GoMock package.
test
Package transactionaloutbox is a generated GoMock package.
Package transactionaloutbox is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL