MCPcopy Index your code
hub / github.com/expr-lang/expr / splitChars

Function splitChars

internal/difflib/difflib_test.go:24–31  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

22}
23
24func splitChars(s string) []string {
25 chars := make([]string, 0, len(s))
26 // Assume ASCII inputs
27 for i := 0; i != len(s); i++ {
28 chars = append(chars, string(s[i]))
29 }
30 return chars
31}
32
33func TestSequenceMatcherRatio(t *testing.T) {
34 s := NewMatcher(splitChars("abcd"), splitChars("bcde"))

Callers 7

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…