aboutsummaryrefslogtreecommitdiff
path: root/pkg/config/yaml_test.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2021-02-21 16:52:01 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2021-02-21 17:43:31 +0100
commit5516a376a230ae98bd308e3b5ccbaafd8d6f4ab1 (patch)
treef80bffc8e697bef1c9f8de373232ab604aac5dc6 /pkg/config/yaml_test.go
parent1f03f19402266c63bbb7120f50caacf3f6f79a36 (diff)
downloadfeed2imap-go-5516a376a230ae98bd308e3b5ccbaafd8d6f4ab1.tar.gz
feed2imap-go-5516a376a230ae98bd308e3b5ccbaafd8d6f4ab1.tar.bz2
feed2imap-go-5516a376a230ae98bd308e3b5ccbaafd8d6f4ab1.zip
Fix order for `Cmp.Diff`
Diffstat (limited to 'pkg/config/yaml_test.go')
-rw-r--r--pkg/config/yaml_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/config/yaml_test.go b/pkg/config/yaml_test.go
index 09f721d..c8d6071 100644
--- a/pkg/config/yaml_test.go
+++ b/pkg/config/yaml_test.go
@@ -45,7 +45,7 @@ func TestBuildOptions(tst *testing.T) {
tst.Run(tt.name, func(tst *testing.T) {
out, unk := buildOptions(&tt.opts, tt.inp)
- if diff := cmp.Diff(out, tt.out); diff != "" {
+ if diff := cmp.Diff(tt.out, out); diff != "" {
tst.Error(diff)
}
@@ -197,7 +197,7 @@ func TestBuildFeeds(tst *testing.T) {
tst.Errorf("buildFeeds() error = %v, wantErr %v", err, tt.wantErr)
return
}
- if diff := cmp.Diff(feeds, tt.result); !tt.wantErr && diff != "" {
+ if diff := cmp.Diff(tt.result, feeds); !tt.wantErr && diff != "" {
tst.Error(diff)
}
})
@@ -373,7 +373,7 @@ feeds:
}
if err == nil {
- if diff := cmp.Diff(got, tt.config, eqNode); diff != "" {
+ if diff := cmp.Diff(tt.config, got, eqNode); diff != "" {
tst.Error(diff)
}
}