MCPcopy
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
48func TestNewModel(t *testing.T) {
49 m := NewModel()
50 if m == nil {
51 t.Error("new model should not be nil")
52 }
53}
54
55func TestNewModelFromFile(t *testing.T) {
56 m, err := NewModelFromFile(basicExample)

Callers

nothing calls this directly

Calls 2

NewModelFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…