(p string, textfmt bool)
| 1295 | } |
| 1296 | |
| 1297 | func (e *Evaluator) loadDescriptorFromFile(p string, textfmt bool) error { |
| 1298 | fds, err := loadFileDescriptorSet(p, textfmt) |
| 1299 | if err != nil { |
| 1300 | return fmt.Errorf("error loading file: %v", err) |
| 1301 | } |
| 1302 | |
| 1303 | return e.AddOption(&typeOption{path: p, fds: fds}) |
| 1304 | } |
| 1305 | |
| 1306 | func (e *Evaluator) loadDescriptors(args []string) error { |
| 1307 | if len(args) < 1 { |
no test coverage detected