Example_invalidNumber demonstrates invalid number format error
()
| 75 | |
| 76 | // Example_invalidNumber demonstrates invalid number format error |
| 77 | func Example_invalidNumber() { |
| 78 | sql := "SELECT * FROM products WHERE price > 19.99.5" |
| 79 | location := models.Location{Line: 1, Column: 38} |
| 80 | |
| 81 | err := errors.InvalidNumberError("19.99.5", location, sql) |
| 82 | |
| 83 | fmt.Println("Invalid Number Example:") |
| 84 | fmt.Println(err.Error()) |
| 85 | fmt.Println() |
| 86 | } |
| 87 | |
| 88 | // Example_missingClause demonstrates missing clause error with suggestions |
| 89 | func Example_missingClause() { |
nothing calls this directly
no test coverage detected