Skip to content

Commit

Permalink
rename variable name in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Jan 3, 2022
1 parent 97b08a2 commit 03882e1
Show file tree
Hide file tree
Showing 34 changed files with 102 additions and 102 deletions.
6 changes: 3 additions & 3 deletions aam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ func TestAAM(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(AAM)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
aam := m.(AAM)
aam.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, aam)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions ala_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ func TestALA(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(ALA)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
ala := m.(ALA)
ala.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, ala)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions apb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ func TestAPB(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(APB)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
apb := m.(APB)
apb.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, apb)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions bec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ func TestBEC(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(BEC)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
bec := m.(BEC)
bec.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, bec)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions bod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ func TestBOD(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(BOD)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
bod := m.(BOD)
bod.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, bod)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions bwc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ func TestBWC(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(BWC)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
bwc := m.(BWC)
bwc.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, bwc)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions bwr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ func TestBWR(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(BWR)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
bwr := m.(BWR)
bwr.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, bwr)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions bww_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ func TestBWW(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(BWW)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
bww := m.(BWW)
bww.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, bww)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions dbk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ func TestDBK(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(DBK)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
dbk := m.(DBK)
dbk.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, dbk)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions dor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ func TestDOR(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(DOR)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
dor := m.(DOR)
dor.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, dor)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions dsc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ func TestDSC(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(DSC)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
dsc := m.(DSC)
dsc.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, dsc)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions dse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ func TestDSE(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(DSE)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
dse := m.(DSE)
dse.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, dse)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions eve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ func TestEVE(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(EVE)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
eve := m.(EVE)
eve.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, eve)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions fir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ func TestFIR(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(FIR)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
fir := m.(FIR)
fir.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, fir)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions hdg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ func TestHDG(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(HDG)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
hdg := m.(HDG)
hdg.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdg)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions hdm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ func TestHDM(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(HDM)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
hdm := m.(HDM)
hdm.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdm)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions hsc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ func TestHSC(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(HSC)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
hsc := m.(HSC)
hsc.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hsc)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions mta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ func TestMTA(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(MTA)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
mta := m.(MTA)
mta.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, mta)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions mtw_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ func TestMTW(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(MTW)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
mtw := m.(MTW)
mtw.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, mtw)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions phtro_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ func TestPHTRO(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(PHTRO)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
phtro := m.(PHTRO)
phtro.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, phtro)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions prdid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ func TestPRDID(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(PRDID)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
prdid := m.(PRDID)
prdid.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, prdid)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions psoncms_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ func TestPSONCMS(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(PSONCMS)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
psoncms := m.(PSONCMS)
psoncms.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, psoncms)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions rmb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ func TestRMB(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(RMB)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
rmb := m.(RMB)
rmb.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, rmb)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions rot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ func TestROT(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(ROT)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
rot := m.(ROT)
rot.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, rot)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions rpm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ func TestRPM(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(RPM)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
rpm := m.(RPM)
rpm.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, rpm)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions rsa_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ func TestRSA(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(RSA)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
rsa := m.(RSA)
rsa.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, rsa)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions txt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ func TestTXT(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(TXT)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
txt := m.(TXT)
txt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, txt)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions vdr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ func TestVDR(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(VDR)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
vdr := m.(VDR)
vdr.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, vdr)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions vlw_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ func TestVLW(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(VLW)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
vlw := m.(VLW)
vlw.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, vlw)
}
})
}
Expand Down
6 changes: 3 additions & 3 deletions vpw_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ func TestVPW(t *testing.T) {
assert.EqualError(t, err, tt.err)
} else {
assert.NoError(t, err)
hdt := m.(VPW)
hdt.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, hdt)
vpw := m.(VPW)
vpw.BaseSentence = BaseSentence{}
assert.Equal(t, tt.msg, vpw)
}
})
}
Expand Down
Loading

0 comments on commit 03882e1

Please sign in to comment.