Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/expr-lang/expr
/ functions
Functions
2,191 in github.com/expr-lang/expr
⨍
Functions
2,191
◇
Types & classes
379
↓ 7 callers
Method
Nature
()
ast/node.go:18
↓ 7 callers
Function
NotRegexp
NotRegexp asserts that a specified regexp does not match a string. assert.NotRegexp(t, regexp.MustCompile("starts"), "it's starting") assert.NotReg
internal/testify/assert/assertions.go:1652
↓ 7 callers
Function
NotSame
NotSame asserts that two pointers do not reference the same object. assert.NotSame(t, ptr1, ptr2) Both arguments must be pointer variables. Pointer
internal/testify/assert/assertions.go:518
↓ 7 callers
Function
PanicsWithValue
PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that the recovered panic value equals the expected panic value.
internal/testify/assert/assertions.go:1230
↓ 7 callers
Function
Same
Same asserts that two pointers reference the same object. assert.Same(t, ptr1, ptr2) Both arguments must be pointer variables. Pointer variable sam
internal/testify/assert/assertions.go:498
↓ 7 callers
Method
Snippet
(line int)
file/source.go:19
↓ 7 callers
Method
Zero
Zero asserts that i is the zero value for its type.
internal/testify/assert/assertion_forward.go:1592
↓ 7 callers
Method
Zero
Zero asserts that i is the zero value for its type.
internal/testify/require/require_forward.go:1594
↓ 7 callers
Method
backup
()
parser/lexer/lexer.go:98
↓ 7 callers
Function
bitFunc
(name string, fn func(x, y int) (any, error))
builtin/utils.go:71
↓ 7 callers
Function
flagField
flagField returns a pointer to the flag field of a reflect.Value.
internal/spew/bypass.go:81
↓ 7 callers
Function
ptr
(i int)
internal/testify/assert/assertions_test.go:558
↓ 7 callers
Function
toBool
(n Node)
optimizer/fold.go:337
↓ 7 callers
Method
word
()
parser/lexer/lexer.go:141
↓ 6 callers
Method
Before
(date time.Time)
test/playground/env.go:52
↓ 6 callers
Function
Equal
(a, b interface{})
vm/runtime/helpers[generated].go:11
↓ 6 callers
Function
EqualError
EqualError asserts that a function returned an error (i.e. not `nil`) and that it is equal to the provided error. actualObj, err := SomeFunction()
internal/testify/assert/assertions.go:1577
↓ 6 callers
Function
Eventually
Eventually asserts that given condition will be met in waitFor time, periodically checking target function each tick. assert.Eventually(t, func() bo
internal/testify/assert/assertions.go:1869
↓ 6 callers
Function
GetUnifiedDiffString
Like WriteUnifiedDiff but returns the diff a string.
internal/difflib/difflib.go:638
↓ 6 callers
Function
HTTPBodyNotContains
HTTPBodyNotContains asserts that a specified handler returns a body that does not contain a string. assert.HTTPBodyNotContains(t, myHandler, "GET",
internal/testify/assert/http_assertions.go:153
↓ 6 callers
Function
Implements
Implements asserts that an object is implemented by the specified interface. assert.Implements(t, (*MyInterface)(nil), new(MyObject))
internal/testify/assert/assertions.go:403
↓ 6 callers
Function
Implements
Implements asserts that an object is implemented by the specified interface. assert.Implements(t, (*MyInterface)(nil), new(MyObject))
internal/testify/require/require.go:844
↓ 6 callers
Function
InEpsilon
InEpsilon asserts that expected and actual have a relative error less than epsilon
internal/testify/assert/assertions.go:1484
↓ 6 callers
Function
InEpsilonSlice
InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices.
internal/testify/assert/assertions.go:1504
↓ 6 callers
Function
IsAlphaNumeric
(r rune)
parser/utils/utils.go:28
↓ 6 callers
Function
Len
Len asserts that the specified object has specific length. Len also fails if the object has a type that len() not accept. assert.Len(t, mySlice, 3)
internal/testify/require/require.go:1153
↓ 6 callers
Method
Len
Len returns the number of values in the slice. It is part of the sort.Interface implementation.
internal/spew/common.go:279
↓ 6 callers
Function
NewSource
(contents string)
file/source.go:9
↓ 6 callers
Method
NotEqualValues
NotEqualValues asserts that two objects are not equal even when converted to the same type a.NotEqualValues(obj1, obj2)
internal/testify/assert/assertion_forward.go:1173
↓ 6 callers
Function
NotImplements
NotImplements asserts that an object does not implement the specified interface. assert.NotImplements(t, (*MyInterface)(nil), new(MyObject))
internal/testify/assert/assertions.go:422
↓ 6 callers
Function
NotZero
NotZero asserts that i is not the zero value for its type.
internal/testify/assert/assertions.go:1678
↓ 6 callers
Function
ObjectsAreEqualValues
ObjectsAreEqualValues gets whether two objects are equal, or if their values are equal.
internal/testify/assert/assertions.go:162
↓ 6 callers
Function
ParseWithConfig
(input string, config *conf.Config)
parser/parser.go:147
↓ 6 callers
Method
Print
Print is a wrapper for fmt.Print that treats each argument as if it were passed with a Formatter interface returned by c.NewFormatter. It returns the
internal/spew/config.go:162
↓ 6 callers
Method
Step
()
vm/vm.go:778
↓ 6 callers
Method
dump
dump is the main workhorse for dumping a value. It uses the passed reflect value to figure out what kind of object we are dealing with and formats it
internal/spew/dump.go:251
↓ 6 callers
Function
fdump
fdump is a helper function to consolidate the logic from the various public methods which take varying writers and config states.
internal/spew/dump.go:453
↓ 6 callers
Method
getArgsForFunc
getArgsForFunc lazily initializes the buffer the first time it is called for a given program (thus, it also needs "program" to run). It will take "nee
vm/vm.go:725
↓ 6 callers
Function
isNil
isNil checks if a specified object is nil or not, without Failing.
internal/testify/assert/assertions.go:684
↓ 6 callers
Function
link
(t *Type)
docgen/markdown.go:65
↓ 6 callers
Function
maybe
()
test/gen/utils.go:7
↓ 6 callers
Method
parseSequenceExpression
parse functions
parser/parser.go:199
↓ 6 callers
Function
patchWithType
(node *Node, newNode Node)
optimizer/optimizer.go:58
↓ 6 callers
Function
printHexPtr
printHexPtr outputs a uintptr formatted as hexadecimal with a leading '0x' prefix to Writer w.
internal/spew/common.go:185
↓ 6 callers
Function
truncatingFormat
truncatingFormat formats the data and truncates it if it's too long. This helps keep formatted error messages lines from exceeding the bufio.MaxScanT
internal/testify/assert/assertions.go:570
↓ 5 callers
Method
After
(date time.Time)
test/playground/env.go:48
↓ 5 callers
Method
Bind
(source Source)
file/error.go:23
↓ 5 callers
Function
Condition
Condition uses a Comparison to assert a complex condition.
internal/testify/assert/assertions.go:1178
↓ 5 callers
Method
Exactly
Exactly asserts that two objects are equal in value and type. a.Exactly(int32(123), int64(123))
internal/testify/assert/assertion_forward.go:386
↓ 5 callers
Function
FailNow
FailNow fails test
internal/testify/assert/assertions.go:325
↓ 5 callers
Function
Fetch
(from, i any)
vm/runtime/runtime.go:21
↓ 5 callers
Function
GetContextDiffString
Like WriteContextDiff but returns the diff a string.
internal/difflib/difflib.go:763
↓ 5 callers
Method
GetOpCodes
Return list of 5-tuples describing how to turn a into b. Each tuple is of the form (tag, i1, i2, j1, j2). The first tuple has i1 == j1 == 0, and rem
internal/difflib/difflib.go:376
↓ 5 callers
Function
Interface
(p any)
internal/deref/deref.go:8
↓ 5 callers
Method
IsVariadic
()
checker/nature/nature.go:364
↓ 5 callers
Function
Less
(a, b interface{})
vm/runtime/helpers[generated].go:702
↓ 5 callers
Method
Method
(int)
test/mock/mock.go:198
↓ 5 callers
Function
Never
Never asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. assert.Never(t, func()
internal/testify/assert/assertions.go:1986
↓ 5 callers
Function
NotContains
NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element. assert.NotContains(
internal/testify/assert/assertions.go:949
↓ 5 callers
Function
NotEqual
NotEqual asserts that the specified values are NOT equal. assert.NotEqual(t, obj1, obj2) Pointer variable equality is determined based on the equal
internal/testify/assert/assertions.go:845
↓ 5 callers
Method
NotEqual
NotEqual asserts that the specified values are NOT equal. a.NotEqual(obj1, obj2) Pointer variable equality is determined based on the equality of t
internal/testify/assert/assertion_forward.go:1163
↓ 5 callers
Function
NotSubset
NotSubset asserts that the specified list(array, slice...) or map does NOT contain all elements given in the specified subset list(array, slice...) or
internal/testify/assert/assertions.go:1029
↓ 5 callers
Function
Optimize
Optimize turns optimizations on or off.
expr.go:131
↓ 5 callers
Method
Ratio
Return a measure of the sequences' similarity (float in [0,1]). Where T is the total number of elements in both sequences, and M is the number of mat
internal/difflib/difflib.go:468
↓ 5 callers
Function
Subset
Subset asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map. ass
internal/testify/assert/assertions.go:971
↓ 5 callers
Function
Zero
Zero asserts that i is the zero value for its type.
internal/testify/assert/assertions.go:1667
↓ 5 callers
Method
addFunction
addFunction adds builtin.Function.Func to the program.functions and returns its index.
compiler/compiler.go:193
↓ 5 callers
Function
compare
(obj1, obj2 interface{}, kind reflect.Kind)
internal/testify/assert/assertion_compare.go:45
↓ 5 callers
Function
copyExportedFields
copyExportedFields iterates downward through nested data structures and creates a copy that only contains the exported struct fields.
internal/testify/assert/assertions.go:84
↓ 5 callers
Method
current
()
vm/vm.go:671
↓ 5 callers
Method
emitValue
(t Kind, value string)
parser/lexer/lexer.go:112
↓ 5 callers
Method
format
format is the main workhorse for providing the Formatter interface. It uses the passed reflect value to figure out what kind of object we are dealing
internal/spew/format.go:201
↓ 5 callers
Function
generateComments
(count int)
test/playground/data.go:106
↓ 5 callers
Method
getStruct
(t reflect.Type)
checker/nature/nature.go:150
↓ 5 callers
Method
memGrow
(size uint)
vm/vm.go:687
↓ 5 callers
Function
min
(a, b int)
internal/difflib/difflib.go:26
↓ 5 callers
Method
parsePostfixExpression
(node Node)
parser/parser.go:777
↓ 5 callers
Method
structField
(c *Cache, parentEmbed *structData, name string)
checker/nature/utils.go:40
↓ 5 callers
Function
validateEqualArgs
validateEqualArgs checks whether provided arguments can be safely used in the Equal/NotEqual functions.
internal/testify/assert/assertions.go:481
↓ 4 callers
Function
AsFloat64
AsFloat64 tells the compiler to expect a float64 result.
expr.go:105
↓ 4 callers
Function
AsInt64
AsInt64 tells the compiler to expect an int64 result.
expr.go:97
↓ 4 callers
Method
Close
()
test/coredns/coredns.go:175
↓ 4 callers
Function
CreateDoc
(i any)
docgen/docgen.go:81
↓ 4 callers
Function
DisableBuiltin
DisableBuiltin disables builtin function.
expr.go:183
↓ 4 callers
Method
Dump
* Dump displays the passed parameters to standard out with newlines, customizable indentation, and additional debug information such as complete types
internal/spew/config.go:273
↓ 4 callers
Function
ElementsMatch
ElementsMatch asserts that the specified listA(array, slice...) is equal to specified listB(array, slice...) ignoring the order of the elements. If th
internal/testify/assert/assertions.go:1086
↓ 4 callers
Function
EqualExportedValues
EqualExportedValues asserts that the types of two objects are equal and their public fields are also equal. This is useful for comparing structs that
internal/testify/assert/assertions.go:610
↓ 4 callers
Method
Error
()
internal/spew/common_test.go:88
↓ 4 callers
Function
ErrorAs
ErrorAs asserts that at least one of the errors in err's chain matches target, and if so, sets target to that error value. This is a wrapper for error
internal/testify/assert/assertions.go:2063
↓ 4 callers
Method
ErrorContains
ErrorContains asserts that a function returned an error (i.e. not `nil`) and that the error contains the specified substring. actualObj, err := Some
internal/testify/assert/assertion_forward.go:261
↓ 4 callers
Function
ErrorIs
ErrorIs asserts that at least one of the errors in err's chain matches target. This is a wrapper for errors.Is.
internal/testify/assert/assertions.go:2017
↓ 4 callers
Function
Exactly
Exactly asserts that two objects are equal in value and type. assert.Exactly(t, int32(123), int64(123))
internal/testify/assert/assertions.go:654
↓ 4 callers
Function
FieldIndex
(c *Cache, env Nature, node ast.Node)
checker/info.go:11
↓ 4 callers
Method
GetGroupedOpCodes
Isolate change clusters by eliminating ranges with no changes. Return a generator of groups with up to n lines of context. Each group is in the same
internal/difflib/difflib.go:416
↓ 4 callers
Method
Implements
Implements asserts that an object is implemented by the specified interface. a.Implements((*MyInterface)(nil), new(MyObject))
internal/testify/assert/assertion_forward.go:674
↓ 4 callers
Function
InDeltaMapValues
InDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys.
internal/testify/assert/assertions.go:1418
↓ 4 callers
Function
IsValidIdentifier
(str string)
parser/utils/utils.go:8
↓ 4 callers
Method
MakeArrayOf
(c *Cache)
checker/nature/nature.go:575
↓ 4 callers
Method
Match
(reply *Msg)
test/coredns/coredns.go:124
↓ 4 callers
Function
Nil
Nil asserts that the specified object is nil. assert.Nil(t, err)
internal/testify/require/require.go:1298
← previous
next →
201–300 of 2,191, ranked by callers