mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-04 22:17:59 +08:00

* Add Cassandra writer implementation Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add cassandra service with version and metrics endpoints Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add test for cassandra writer Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Exclude api.go files from code coverage Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add readme file for cassandra writer Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add docker compose configuration for cassandra writer Add README file. Add docker compose configuration. Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add gocql as project dependency Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Fix init script for cassandra in docker-compose Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com> * Add testifies require subpackage Signed-off-by: Aleksandar Novakovic <aleksandar.novakovic@mainflux.com>
17 lines
388 B
Go
17 lines
388 B
Go
package require
|
|
|
|
// Assertions provides assertion methods around the
|
|
// TestingT interface.
|
|
type Assertions struct {
|
|
t TestingT
|
|
}
|
|
|
|
// New makes a new Assertions object for the specified TestingT.
|
|
func New(t TestingT) *Assertions {
|
|
return &Assertions{
|
|
t: t,
|
|
}
|
|
}
|
|
|
|
//go:generate go run ../_codegen/main.go -output-package=require -template=require_forward.go.tmpl -include-format-funcs
|