MCPcopy
hub / github.com/nektos/act / NewInterpeter

Function NewInterpeter

pkg/exprparser/interpreter.go:74–79  ·  view source on GitHub ↗
(env *EvaluationEnvironment, config Config)

Source from the content-addressed store, hash-verified

72}
73
74func NewInterpeter(env *EvaluationEnvironment, config Config) Interpreter {
75 return &interperterImpl{
76 env: env,
77 config: config,
78 }
79}
80
81func (impl *interperterImpl) Evaluate(input string, defaultStatusCheck DefaultStatusCheck) (interface{}, error) {
82 input = strings.TrimPrefix(input, "${{")

Callers 15

TestFunctionContainsFunction · 0.85
TestFunctionStartsWithFunction · 0.85
TestFunctionEndsWithFunction · 0.85
TestFunctionJoinFunction · 0.85
TestFunctionToJSONFunction · 0.85
TestFunctionFromJSONFunction · 0.85
TestFunctionHashFilesFunction · 0.85
TestFunctionFormatFunction · 0.85
TestMapContainsFunction · 0.85
TestLiteralsFunction · 0.85

Calls

no outgoing calls

Tested by 14

TestFunctionContainsFunction · 0.68
TestFunctionStartsWithFunction · 0.68
TestFunctionEndsWithFunction · 0.68
TestFunctionJoinFunction · 0.68
TestFunctionToJSONFunction · 0.68
TestFunctionFromJSONFunction · 0.68
TestFunctionHashFilesFunction · 0.68
TestFunctionFormatFunction · 0.68
TestMapContainsFunction · 0.68
TestLiteralsFunction · 0.68
TestOperatorsFunction · 0.68
TestOperatorsCompareFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…