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

Function mockRelativeSource

common/ast/ast_test.go:454–460  ·  view source on GitHub ↗
(t testing.TB, text string, lineOffsets []int32, baseLocation common.Location)

Source from the content-addressed store, hash-verified

452}
453
454func mockRelativeSource(t testing.TB, text string, lineOffsets []int32, baseLocation common.Location) common.Source {
455 t.Helper()
456 return &mockSource{
457 Source: common.NewTextSource(text),
458 lineOffsets: lineOffsets,
459 baseLocation: baseLocation}
460}
461
462type mockSource struct {
463 common.Source

Callers 1

Calls 1

NewTextSourceFunction · 0.92

Tested by

no test coverage detected