ax(ueps): include method name in sentinelError test names
TestFilename_Function_{Good,Bad,Ugly} requires the function being
tested, not just the type name. sentinelError tests exercise the
.Error() method so names must be TestPacket_sentinelError_Error_*.
Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
0fe74ae8a6
commit
6df2566acb
1 changed files with 3 additions and 3 deletions
|
|
@ -208,7 +208,7 @@ func TestPacket_writeTLV_Ugly(t *testing.T) {
|
|||
}
|
||||
|
||||
// var sentinel sentinelError = "record not found"; sentinel.Error() == "record not found"
|
||||
func TestPacket_sentinelError_Good(t *testing.T) {
|
||||
func TestPacket_sentinelError_Error_Good(t *testing.T) {
|
||||
sentinel := sentinelError("record not found")
|
||||
|
||||
if sentinel.Error() != "record not found" {
|
||||
|
|
@ -217,7 +217,7 @@ func TestPacket_sentinelError_Good(t *testing.T) {
|
|||
}
|
||||
|
||||
// var sentinel sentinelError = ""; sentinel.Error() == "" (empty message is valid sentinel)
|
||||
func TestPacket_sentinelError_Bad(t *testing.T) {
|
||||
func TestPacket_sentinelError_Error_Bad(t *testing.T) {
|
||||
sentinel := sentinelError("")
|
||||
|
||||
if sentinel.Error() != "" {
|
||||
|
|
@ -226,7 +226,7 @@ func TestPacket_sentinelError_Bad(t *testing.T) {
|
|||
}
|
||||
|
||||
// var sentinelFirst, sentinelSecond sentinelError = "x", "x"; sentinelFirst == sentinelSecond (sentinel identity: same message = same error)
|
||||
func TestPacket_sentinelError_Ugly(t *testing.T) {
|
||||
func TestPacket_sentinelError_Error_Ugly(t *testing.T) {
|
||||
sentinelFirst := sentinelError("integrity violation")
|
||||
sentinelSecond := sentinelError("integrity violation")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue