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

Function mockRelativeSource

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

Source from the content-addressed store, hash-verified

433}
434
435func mockRelativeSource(t testing.TB, text string, lineOffsets []int32, baseLocation common.Location) common.Source {
436 t.Helper()
437 return &mockSource{
438 Source: common.NewTextSource(text),
439 lineOffsets: lineOffsets,
440 baseLocation: baseLocation}
441}
442
443type mockSource struct {
444 common.Source

Callers 1

Calls 1

NewTextSourceFunction · 0.92

Tested by

no test coverage detected