MCPcopy
hub / github.com/prometheus/client_golang / NewMatcher

Function NewMatcher

prometheus/internal/difflib.go:103–107  ·  view source on GitHub ↗
(a, b []string)

Source from the content-addressed store, hash-verified

101}
102
103func NewMatcher(a, b []string) *SequenceMatcher {
104 m := SequenceMatcher{autoJunk: true}
105 m.SetSeqs(a, b)
106 return &m
107}
108
109func NewMatcherWithJunk(a, b []string, autoJunk bool,
110 isJunk func(string) bool,

Callers 8

TestSequenceMatcherRatioFunction · 0.85
TestGetOptCodesFunction · 0.85
TestGroupedOpCodesFunction · 0.85
TestWithAsciiOneInsertFunction · 0.85
TestWithAsciiOnDeleteFunction · 0.85
WriteUnifiedDiffFunction · 0.85

Calls 1

SetSeqsMethod · 0.95

Tested by 7

TestSequenceMatcherRatioFunction · 0.68
TestGetOptCodesFunction · 0.68
TestGroupedOpCodesFunction · 0.68
TestWithAsciiOneInsertFunction · 0.68
TestWithAsciiOnDeleteFunction · 0.68