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

Function TestFolderActivation

interpreter/interpreter_test.go:2501–2513  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2499}
2500
2501func TestFolderActivation(t *testing.T) {
2502 parentAct := EmptyActivation()
2503 frame := mustNewExecutionFrame(t, parentAct)
2504 defer frame.Close()
2505 fld := newFolder(&evalFold{}, frame)
2506 defer releaseFolder(fld)
2507 if fld.Parent() != frame {
2508 t.Errorf("fld.Parent() = %v, wanted %v", fld.Parent(), frame)
2509 }
2510 if fld.Unwrap() != frame {
2511 t.Errorf("fld.Unwrap() = %v, wanted %v", fld.Unwrap(), frame)
2512 }
2513}
2514
2515func TestEvalWatchConstructor(t *testing.T) {
2516 watchConst := &evalWatchConstructor{

Callers

nothing calls this directly

Calls 7

EmptyActivationFunction · 0.85
mustNewExecutionFrameFunction · 0.85
newFolderFunction · 0.85
releaseFolderFunction · 0.85
CloseMethod · 0.80
ParentMethod · 0.65
UnwrapMethod · 0.65

Tested by

no test coverage detected