MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / cloneKeyPatternsPtr

Function cloneKeyPatternsPtr

internal/effectconfigraw/hooks.go:274–280  ·  view source on GitHub ↗
(source *[]etscore.KeyPattern)

Source from the content-addressed store, hash-verified

272func mergeSeverityMaps(target, source map[string]etscore.Severity) map[string]etscore.Severity {
273 if source == nil {
274 if target == nil {
275 return nil
276 }
277 cloned := make(map[string]etscore.Severity, len(target))
278 maps.Copy(cloned, target)
279 return cloned
280 }
281 merged := make(map[string]etscore.Severity, len(target)+len(source))
282 maps.Copy(merged, target)
283 maps.Copy(merged, source)

Callers 1

cloneOverridesFunction · 0.85

Calls 1

cloneKeyPatternsFunction · 0.70

Tested by

no test coverage detected