(specsFile string)
| 633 | } |
| 634 | |
| 635 | func extraSpecsFromFile(specsFile string) (json.RawMessage, error) { |
| 636 | data, err := os.ReadFile(specsFile) |
| 637 | if err != nil { |
| 638 | return nil, fmt.Errorf("error opening specs file: %w", err) |
| 639 | } |
| 640 | return asRawMessage(data) |
| 641 | } |
| 642 | |
| 643 | func asRawMessage(data []byte) (json.RawMessage, error) { |
| 644 | // unmarshaling and marshaling again will remove new lines and verify we |
no test coverage detected