improve coverage

This commit is contained in:
aler9
2021-08-05 18:17:59 +02:00
parent 2914af3fda
commit d8bf9b2307
11 changed files with 168 additions and 118 deletions

View File

@@ -183,15 +183,6 @@ func TestAuthenticateRead(t *testing.T) {
}
}
func TestAuthenticateWrite(t *testing.T) {
for _, ca := range casesAuthenticate {
t.Run(ca.name, func(t *testing.T) {
vout := ca.h.Write()
require.Equal(t, ca.vout, vout)
})
}
}
func TestAutenticatehReadErrors(t *testing.T) {
for _, ca := range []struct {
name string
@@ -231,3 +222,12 @@ func TestAutenticatehReadErrors(t *testing.T) {
})
}
}
func TestAuthenticateWrite(t *testing.T) {
for _, ca := range casesAuthenticate {
t.Run(ca.name, func(t *testing.T) {
vout := ca.h.Write()
require.Equal(t, ca.vout, vout)
})
}
}