(vars map[string]string)
| 8 | ) |
| 9 | |
| 10 | func 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 | |
| 17 | func TestParseAgentName(t *testing.T) { |
| 18 | tests := []struct { |
no outgoing calls
no test coverage detected