MCPcopy Index your code
hub / github.com/idank/explainshell / basenameSet

Function basenameSet

prod/botshed/module_test.go:10–16  ·  view source on GitHub ↗
(names ...string)

Source from the content-addressed store, hash-verified

8)
9
10func basenameSet(names ...string) map[string]struct{} {
11 m := make(map[string]struct{}, len(names))
12 for _, n := range names {
13 m[n] = struct{}{}
14 }
15 return m
16}
17
18func TestCountHits(t *testing.T) {
19 bn := basenameSet("cd.1posix", "plan9-rc.1", "rc.1plan9", "ls.1", "mwhatis.1")

Callers 2

TestCountHitsFunction · 0.85
TestShouldShedFunction · 0.85

Calls 1

makeFunction · 0.85

Tested by

no test coverage detected