mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
use github action for lint
This commit is contained in:
parent
9fe4361d85
commit
fbab27064b
7 changed files with 34 additions and 465 deletions
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue