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

Function splitChars

prometheus/internal/difflib_test.go:36–43  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

34}
35
36func splitChars(s string) []string {
37 chars := make([]string, 0, len(s))
38 // Assume ASCII inputs
39 for i := 0; i != len(s); i++ {
40 chars = append(chars, string(s[i]))
41 }
42 return chars
43}
44
45func TestSequenceMatcherRatio(t *testing.T) {
46 s := NewMatcher(splitChars("abcd"), splitChars("bcde"))

Callers 5

TestSequenceMatcherRatioFunction · 0.85
TestGetOptCodesFunction · 0.85
TestWithAsciiOneInsertFunction · 0.85
TestWithAsciiOnDeleteFunction · 0.85
TestWithAsciiBJunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected