test

package
v0.0.0-...-88cf978 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectationsMet

func ExpectationsMet(t *testing.T, mock sqlmock.Sqlmock)

ExpectationsMet checks if all the expectations are fulfilled

func MockServer

func MockServer() error

MockServer mocks the calls to keto server for testing

func SetupMockDB

func SetupMockDB() sqlmock.Sqlmock

SetupMockDB setups the mock sql db

Types

type AnyTime

type AnyTime struct{}

AnyTime To match time for test sqlmock queries

func (AnyTime) Match

func (a AnyTime) Match(v driver.Value) bool

Match satisfies sqlmock.Argument interface

Jump to

Keyboard shortcuts

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