MCPcopy
hub / github.com/gotify/server / Test_ensureClientHasCorrectJsonRepresentation

Method Test_ensureClientHasCorrectJsonRepresentation

api/client_test.go:59–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func (s *ClientSuite) Test_ensureClientHasCorrectJsonRepresentation() {
60 actual := &model.Client{ID: 1, UserID: 2, Token: "Casdasfgeeg", Name: "myclient"}
61 test.JSONEquals(s.T(), actual, `{"id":1,"token":"Casdasfgeeg","name":"myclient","lastUsed":null}`)
62}
63
64func (s *ClientSuite) Test_CreateClient_mapAllParameters() {
65 s.db.User(5)

Callers

nothing calls this directly

Calls 1

JSONEqualsFunction · 0.92

Tested by

no test coverage detected