GitHub Action CI: Add Go source file format check (#6090)
https://github.com/XTLS/Xray-core/pull/6057#issuecomment-4364819830 And https://github.com/XTLS/Xray-core/pull/6149#issuecomment-4546876261
This commit is contained in:
1 parent
ca4b156b57
commit
d43a808ea5
114 files changed
+736
-378
No files matched your search
@@ -53,7 +53,7 @@ func TestRequestSerialization(t *testing.T) {
|
||||
}
|
||||
|
||||
addonsComparer := func(x, y *Addons) bool {
|
||||
return (x.Flow == y.Flow) && (cmp.Equal(x.Seed, y.Seed))
|
||||
return (x.Flow == y.Flow) && cmp.Equal(x.Seed, y.Seed)
|
||||
}
|
||||
if r := cmp.Diff(actualAddons, expectedAddons, cmp.Comparer(addonsComparer)); r != "" {
|
||||
t.Error(r)
|
||||
@@ -125,7 +125,7 @@ func TestMuxRequest(t *testing.T) {
|
||||
}
|
||||
|
||||
addonsComparer := func(x, y *Addons) bool {
|
||||
return (x.Flow == y.Flow) && (cmp.Equal(x.Seed, y.Seed))
|
||||
return (x.Flow == y.Flow) && cmp.Equal(x.Seed, y.Seed)
|
||||
}
|
||||
if r := cmp.Diff(actualAddons, expectedAddons, cmp.Comparer(addonsComparer)); r != "" {
|
||||
t.Error(r)
|
||||
|
||||
Reference in new issue
Block a user