MCPcopy
hub / github.com/fluid-cloudnative/fluid / KeyMatched

Function KeyMatched

pkg/utils/map.go:102–105  ·  view source on GitHub ↗
(m map[K]V, key K)

Source from the content-addressed store, hash-verified

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

Callers 4

GetServerlessPlatformFunction · 0.85
AppControllerDisabledFunction · 0.85
map_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected