MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / TestApplicationGet

Function TestApplicationGet

internal/integration/application.go:139–156  ·  view source on GitHub ↗
(t *testing.T, s Server)

Source from the content-addressed store, hash-verified

137}
138
139func TestApplicationGet(t *testing.T, s Server) {
140 key := ari.NewKey(ari.ApplicationKey, "1")
141
142 runTest("simple", t, s, func(t *testing.T, m *mock, cl ari.Client) {
143 ad := &ari.ApplicationData{}
144 ad.Name = "app1"
145
146 m.Application.On("Data", tmock.Anything).Return(ad, nil)
147
148 if h := cl.Application().Get(key); h == nil {
149 t.Errorf("Unexpected nil-handle")
150 }
151
152 m.Shutdown()
153
154 m.Application.AssertCalled(t, "Data", key)
155 })
156}

Callers 2

TestApplicationGetFunction · 0.92
TestApplicationGetFunction · 0.92

Calls 3

runTestFunction · 0.85
ApplicationMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected