(m map[K]V, key K)
| 100 | } |
| 101 | |
| 102 | func KeyMatched[K comparable, V any](m map[K]V, key K) bool { |
| 103 | _, match := m[key] |
| 104 | return match |
| 105 | } |
| 106 | |
| 107 | func KeyValueMatched[K comparable, V comparable](m map[K]V, key K, value V) bool { |
| 108 | val, exists := m[key] |
no outgoing calls
no test coverage detected