mirror of
https://github.com/stretchr/testify.git
synced 2025-04-27 21:24:09 +00:00
assert: s/rune/r/ to avoid "rune" predeclared ident shadowing #642
Thanks @quasllyte
This commit is contained in:
parent
ed4976c764
commit
a3bed97cf3
@ -172,8 +172,8 @@ func isTest(name, prefix string) bool {
|
||||
if len(name) == len(prefix) { // "Test" is ok
|
||||
return true
|
||||
}
|
||||
rune, _ := utf8.DecodeRuneInString(name[len(prefix):])
|
||||
return !unicode.IsLower(rune)
|
||||
r, _ := utf8.DecodeRuneInString(name[len(prefix):])
|
||||
return !unicode.IsLower(r)
|
||||
}
|
||||
|
||||
func messageFromMsgAndArgs(msgAndArgs ...interface{}) string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user