mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
qa/spelling: Add Codespell support (#1121)
* Add codespell support * Fix paths * Add HTML files to exclusion list
This commit is contained in:
@@ -708,7 +708,7 @@ func TestMatchesEmailPattern(t *testing.T) {
|
||||
if success {
|
||||
t.Error("MatchesEmailPattern() unexpected test validation result")
|
||||
}
|
||||
success = MatchesEmailPattern("someon esemail@gmail")
|
||||
success = MatchesEmailPattern("someone esemail@gmail")
|
||||
if success {
|
||||
t.Error("MatchesEmailPattern() unexpected test validation result")
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ func UnixTimestampStrToTime(timeStr string) (time.Time, error) {
|
||||
return time.Unix(i, 0), nil
|
||||
}
|
||||
|
||||
// BoolPtr takes in boolen condition and returns pointer version of it
|
||||
// BoolPtr takes in boolean condition and returns pointer version of it
|
||||
func BoolPtr(condition bool) *bool {
|
||||
b := condition
|
||||
return &b
|
||||
|
||||
@@ -95,7 +95,7 @@ func TestRoundFloat(t *testing.T) {
|
||||
for testInput, expectedOutput := range values {
|
||||
actualOutput := RoundFloat(testInput, precision)
|
||||
if actualOutput != expectedOutput {
|
||||
t.Errorf("RoundFloat Expected '%v'. Actual '%v' on precission %d",
|
||||
t.Errorf("RoundFloat Expected '%v'. Actual '%v' on precision %d",
|
||||
expectedOutput, actualOutput, precision)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user