Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthorPaging = map[string]interface{}{ "nodes": Dummy_AuthorList, "total": len(Dummy_AuthorList), }
View Source
var Dummy_AuthorList = []map[string]interface{}{ { "id": 1, "created_at": time.Now(), "updated_at": time.Now(), "deleted_at": nil, "email": "abc@abc.com", "kid": "", "first_name": "abc", "last_name": "cba", "medium": map[string]interface{}{ "id": 1, }, "birth_date": time.Now(), "gender": "male", "permission": map[string]interface{}{ "id": 1, "created_at": time.Now(), "updated_at": time.Now(), "deleted_at": nil, "user_id": 1, "user": nil, "organisation_id": 1, "organisation": nil, "role": "owner", }, }, { "id": 2, "created_at": time.Now(), "updated_at": time.Now(), "deleted_at": nil, "email": "def@def.com", "kid": "", "first_name": "def", "last_name": "fed", "birth_date": time.Now(), "medium": map[string]interface{}{ "id": 1, }, "gender": "male", "permission": map[string]interface{}{ "id": 2, "created_at": time.Now(), "updated_at": time.Now(), "deleted_at": nil, "user_id": 2, "user": nil, "organisation_id": 1, "organisation": nil, "role": "member", }, }, }
Functions ¶
func CheckSpaceMock ¶
func CheckSpaceMock(mock sqlmock.Sqlmock)
func ExpectationsMet ¶
ExpectationsMet checks if all the expectations are fulfilled
func KavachMockServer ¶
func KavachMockServer()
func SetupMockDB ¶
func SetupMockDB() sqlmock.Sqlmock
func TestRouter ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.