MCPcopy
hub / github.com/expr-lang/expr / init

Function init

test/examples/examples_test.go:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11var examples []CodeBlock
12
13func init() {
14 b, err := os.ReadFile("../../testdata/examples.md")
15 if err != nil {
16 panic(err)
17 }
18 examples = extractCodeBlocksWithTitle(string(b))
19}
20
21func TestExamples(t *testing.T) {
22 for _, code := range examples {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…