Skip to content

Commit

Permalink
Merge pull request #74 from projectdiscovery/maint-cache-option
Browse files Browse the repository at this point in the history
Adding missing parameter pass through
  • Loading branch information
Mzack9999 authored Aug 11, 2023
2 parents 156ef2a + edee48a commit 516390e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dsl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,7 @@ func NewWithPositionalArgs(name string, numberOfArgs int, cacheable bool, expr g
Name: name,
NumberOfArgs: numberOfArgs,
ExpressionFunction: expr,
IsCacheable: cacheable,
}
return function
}
Expand Down
1 change: 1 addition & 0 deletions dsl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ func TestGetPrintableDslFunctionSignatures(t *testing.T) {
require.Equal(t, expected, signatures)

coloredSignatures := GetPrintableDslFunctionSignatures(false)
// nolint
require.Contains(t, coloredSignatures, `[93maes_cbc(arg1, arg2, arg3 interface{}) interface{}`, "could not get colored signatures")
}

Expand Down

0 comments on commit 516390e

Please sign in to comment.