mirror of
https://github.com/jimeh/go-mocktesting.git
synced 2026-02-19 03:46:40 +00:00
chore(test): fix typo in test function name and var/field names
The Aborted() method was originally called Halted(), the rename didn't make it to the test function it seems.
This commit is contained in:
14
t_test.go
14
t_test.go
@@ -2371,9 +2371,9 @@ func TestT_HelperNames(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestT_Halted(t *testing.T) {
|
func TestT_Aborted(t *testing.T) {
|
||||||
type fields struct {
|
type fields struct {
|
||||||
halted bool
|
aborted bool
|
||||||
}
|
}
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
@@ -2381,19 +2381,19 @@ func TestT_Halted(t *testing.T) {
|
|||||||
want bool
|
want bool
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
name: "not halted",
|
name: "not aborted",
|
||||||
fields: fields{halted: false},
|
fields: fields{aborted: false},
|
||||||
want: false,
|
want: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "halted",
|
name: "aborted",
|
||||||
fields: fields{halted: true},
|
fields: fields{aborted: true},
|
||||||
want: true,
|
want: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
mt := &T{aborted: tt.fields.halted}
|
mt := &T{aborted: tt.fields.aborted}
|
||||||
|
|
||||||
got := mt.Aborted()
|
got := mt.Aborted()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user