From a892f8eea7425e8eb2a98f19057ced5c55cedb39 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 22 Nov 2021 02:03:49 +0000 Subject: [PATCH] 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. --- t_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/t_test.go b/t_test.go index 118b801..54d9bd2 100644 --- a/t_test.go +++ b/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 { - halted bool + aborted bool } tests := []struct { name string @@ -2381,19 +2381,19 @@ func TestT_Halted(t *testing.T) { want bool }{ { - name: "not halted", - fields: fields{halted: false}, + name: "not aborted", + fields: fields{aborted: false}, want: false, }, { - name: "halted", - fields: fields{halted: true}, + name: "aborted", + fields: fields{aborted: true}, want: true, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - mt := &T{aborted: tt.fields.halted} + mt := &T{aborted: tt.fields.aborted} got := mt.Aborted()