MCPcopy Index your code
hub / github.com/containerd/containerd / TestBasicAuthResolver

Function TestBasicAuthResolver

core/remotes/docker/resolver_test.go:222–228  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

220}
221
222func TestBasicAuthResolver(t *testing.T) {
223 creds := func(string) (string, string, error) {
224 return "totallyvaliduser", "totallyvalidpassword", nil
225 }
226
227 runBasicTest(t, "testname", withBasicAuthServer(creds))
228}
229
230func TestBadTokenResolver(t *testing.T) {
231 th := http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls 2

withBasicAuthServerFunction · 0.85
runBasicTestFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…