(t *testing.T)
| 63 | } |
| 64 | |
| 65 | func TestNewModelFromString(t *testing.T) { |
| 66 | modelBytes, _ := ioutil.ReadFile(basicExample) |
| 67 | modelString := string(modelBytes) |
| 68 | m, err := NewModelFromString(modelString) |
| 69 | if err != nil { |
| 70 | t.Errorf("model failed to load from string: %s", err) |
| 71 | } |
| 72 | if m == nil { |
| 73 | t.Error("model should not be nil") |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | func TestLoadModelFromConfig(t *testing.T) { |
| 78 | m := NewModel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…