Closed nicktobey closed 3 months ago
@nicktobey DOLT
comparing_percentages |
---|
100.000000 to 100.000000 |
version | result | total |
---|---|---|
4c330aa | ok | 5937457 |
version | total_tests |
---|---|
4c330aa | 5937457 |
correctness_percentage |
---|
100.0 |
@nicktobey DOLT
comparing_percentages |
---|
100.000000 to 100.000000 |
version | result | total |
---|---|---|
e658448 | ok | 5937457 |
version | total_tests |
---|---|
e658448 | 5937457 |
correctness_percentage |
---|
100.0 |
@nicktobey DOLT
comparing_percentages |
---|
100.000000 to 100.000000 |
version | result | total |
---|---|---|
fde045c | ok | 5937457 |
version | total_tests |
---|---|
fde045c | 5937457 |
correctness_percentage |
---|
100.0 |
@nicktobey DOLT
comparing_percentages |
---|
100.000000 to 100.000000 |
version | result | total |
---|---|---|
395d903 | ok | 5937457 |
version | total_tests |
---|---|
395d903 | 5937457 |
correctness_percentage |
---|
100.0 |
This was discovered by running
golangci-lint
, which returned the following check failure:Reproduction example:
The culprit is this line in
diff.go
:strings.Trim
does not remove a prefix. Rather, it removes every character from the start and end of the input string that matches a character in the second parameter. In this case, the second parameter is the constant string__DATABASE__
, leading to all of these characters getting stripped from the table name.We actually want to call
strings.TrimPrefix
instead.