Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/apache/casbin
/ TestNewModel
Function
TestNewModel
model/model_test.go:48–53 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
46
}
47
48
func
TestNewModel(t *testing.T) {
49
m := NewModel()
50
if
m == nil {
51
t.Error(
"new model should not be nil"
)
52
}
53
}
54
55
func
TestNewModelFromFile(t *testing.T) {
56
m, err := NewModelFromFile(basicExample)
Callers
nothing calls this directly
Calls
2
NewModel
Function · 0.85
Error
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…