MCPcopy Index your code
hub / github.com/cli/cli / lookup

Function lookup

internal/agents/detect_test.go:10–15  ·  view source on GitHub ↗
(vars map[string]string)

Source from the content-addressed store, hash-verified

8)
9
10func lookup(vars map[string]string) func(string) (string, bool) {
11 return func(key string) (string, bool) {
12 v, ok := vars[key]
13 return v, ok
14 }
15}
16
17func TestParseAgentName(t *testing.T) {
18 tests := []struct {

Callers 2

detectWithFunction · 0.85
TestDetectWithFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected