(t *testing.T)
| 95 | } |
| 96 | |
| 97 | func TestHasSection(t *testing.T) { |
| 98 | m := NewModel() |
| 99 | _ = m.loadModelFromConfig(basicConfig) |
| 100 | for _, sec := range requiredSections { |
| 101 | if !m.hasSection(sec) { |
| 102 | t.Errorf("%s section was expected in model", sec) |
| 103 | } |
| 104 | } |
| 105 | m = NewModel() |
| 106 | _ = m.loadModelFromConfig(&MockConfig{}) |
| 107 | for _, sec := range requiredSections { |
| 108 | if m.hasSection(sec) { |
| 109 | t.Errorf("%s section was not expected in model", sec) |
| 110 | } |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | func TestModel_AddDef(t *testing.T) { |
| 115 | m := NewModel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…