MCPcopy Index your code
hub / github.com/coder/coder / AlwaysFalseNode

Function AlwaysFalseNode

coderd/rbac/regosql/sqltypes/always_false.go:26–31  ·  view source on GitHub ↗

AlwaysFalseNode is mainly used for unit testing to make a Node immediately.

(n Node)

Source from the content-addressed store, hash-verified

24
25// AlwaysFalseNode is mainly used for unit testing to make a Node immediately.
26func AlwaysFalseNode(n Node) Node {
27 return alwaysFalse{
28 InnerNode: n,
29 Matcher: nil,
30 }
31}
32
33// UseAs uses a type no one supports to always override with false.
34func (alwaysFalse) UseAs() Node { return alwaysFalse{} }

Callers 2

TestEqualityFunction · 0.92
TestMembershipFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestEqualityFunction · 0.74
TestMembershipFunction · 0.74