(t *testing.T)
| 53 | } |
| 54 | |
| 55 | func TestNewModelFromFile(t *testing.T) { |
| 56 | m, err := NewModelFromFile(basicExample) |
| 57 | if err != nil { |
| 58 | t.Errorf("model failed to load from file: %s", err) |
| 59 | } |
| 60 | if m == nil { |
| 61 | t.Error("model should not be nil") |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | func TestNewModelFromString(t *testing.T) { |
| 66 | modelBytes, _ := ioutil.ReadFile(basicExample) |
nothing calls this directly
no test coverage detected
searching dependent graphs…