mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-10 21:58:52 +00:00
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:
committed by
GitHub
parent
ca4b156b57
commit
d43a808ea5
@@ -59,7 +59,7 @@ func New(opts ...Option) (*Reader, *Writer) {
|
||||
}
|
||||
|
||||
for _, opt := range opts {
|
||||
opt(&(p.option))
|
||||
opt(&p.option)
|
||||
}
|
||||
|
||||
return &Reader{
|
||||
|
||||
@@ -129,12 +129,12 @@ func TestPipeWriteMultiThread(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestInterfaces(t *testing.T) {
|
||||
_ = (buf.Reader)(new(Reader))
|
||||
_ = (buf.TimeoutReader)(new(Reader))
|
||||
_ = buf.Reader(new(Reader))
|
||||
_ = buf.TimeoutReader(new(Reader))
|
||||
|
||||
_ = (common.Interruptible)(new(Reader))
|
||||
_ = (common.Interruptible)(new(Writer))
|
||||
_ = (common.Closable)(new(Writer))
|
||||
_ = common.Interruptible(new(Reader))
|
||||
_ = common.Interruptible(new(Writer))
|
||||
_ = common.Closable(new(Writer))
|
||||
}
|
||||
|
||||
func BenchmarkPipeReadWrite(b *testing.B) {
|
||||
|
||||
Reference in New Issue
Block a user