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

Function mockRelativeSource

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

Source from the content-addressed store, hash-verified

443}
444
445func mockRelativeSource(t testing.TB, text string, lineOffsets []int32, baseLocation common.Location) common.Source {
446 t.Helper()
447 return &mockSource{
448 Source: common.NewTextSource(text),
449 lineOffsets: lineOffsets,
450 baseLocation: baseLocation}
451}
452
453type mockSource struct {
454 common.Source

Callers 1

Calls 1

NewTextSourceFunction · 0.92

Tested by

no test coverage detected