MCPcopy Create free account
hub / github.com/belak/gitdir / lookupAndCheck

Function lookupAndCheck

repo_test.go:278–285  ·  view source on GitHub ↗
(t *testing.T, c *Config, u *User, path string, access AccessLevel)

Source from the content-addressed store, hash-verified

276}
277
278func lookupAndCheck(t *testing.T, c *Config, u *User, path string, access AccessLevel) {
279 t.Helper()
280
281 repo, err := c.LookupRepoAccess(u, path)
282 require.Nil(t, err)
283 require.NotNil(t, repo)
284 assert.Equal(t, access, repo.Access)
285}
286
287func testCheckRepoAccess(t *testing.T, c *Config, u *User, access allRepoAccessLevels) {
288 t.Helper()

Callers 2

testCheckRepoAccessFunction · 0.85
testImplicitRepoAccessFunction · 0.85

Calls 1

LookupRepoAccessMethod · 0.80

Tested by

no test coverage detected