MCPcopy Create free account
hub / github.com/cel-expr/cel-go / TestNewTextSourceWithLimit_MultibyteWithinLimit

Function TestNewTextSourceWithLimit_MultibyteWithinLimit

common/source_test.go:150–159  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

148}
149
150func TestNewTextSourceWithLimit_MultibyteWithinLimit(t *testing.T) {
151 data := "🙂🙂"
152 src, err := NewTextSourceWithLimit(data, 2)
153 if err != nil {
154 t.Fatalf("unexpected error: %v", err)
155 }
156 if got, want := src.Content(), data; got != want {
157 t.Fatalf("got %q, want %q", got, want)
158 }
159}

Callers

nothing calls this directly

Calls 2

NewTextSourceWithLimitFunction · 0.85
ContentMethod · 0.65

Tested by

no test coverage detected