(str string)
| 49 | } |
| 50 | |
| 51 | func clause(str string) ast.Clause { |
| 52 | clause, err := parse.Clause(str) |
| 53 | if err != nil { |
| 54 | panic(fmt.Errorf("bad syntax in test case: %s got %w", str, err)) |
| 55 | } |
| 56 | return clause |
| 57 | } |
| 58 | |
| 59 | func unit(str string) parse.SourceUnit { |
| 60 | unit, err := parse.Unit(strings.NewReader(str)) |
no test coverage detected