use github action for lint

This commit is contained in:
Caleb Doxsey 2023-04-21 09:44:13 -06:00
parent 9fe4361d85
commit fbab27064b
7 changed files with 34 additions and 465 deletions

View file

@ -13,14 +13,14 @@ func TestMockEncoder(t *testing.T) {
UnmarshalError: e,
}
s, err := mc.Marshal("test")
if errors.Is(err, e) {
if !errors.Is(err, e) {
t.Error("unexpected Marshal error")
}
if string(s) != "MarshalResponse" {
t.Error("unexpected MarshalResponse error")
}
err = mc.Unmarshal([]byte("s"), "s")
if errors.Is(err, e) {
if !errors.Is(err, e) {
t.Error("unexpected Unmarshal error")
}
}