(sec string, ptype string)
| 212 | } |
| 213 | |
| 214 | func (model Model) GetAssertion(sec string, ptype string) (*Assertion, error) { |
| 215 | if model[sec] == nil { |
| 216 | return nil, fmt.Errorf("missing required section %s", sec) |
| 217 | } |
| 218 | if model[sec][ptype] == nil { |
| 219 | return nil, fmt.Errorf("missing required definition %s in section %s", ptype, sec) |
| 220 | } |
| 221 | return model[sec][ptype], nil |
| 222 | } |
| 223 | |
| 224 | // PrintModel prints the model to the log. |
| 225 | func (model Model) PrintModel() { |
no outgoing calls
no test coverage detected