Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitac38512

Browse files
committed
wspb: Remove
The library we're currently using for protobufs is deprecated. Doesn't belong in the library coreanyway.Closes#311Updates#297
1 parente305027 commitac38512

File tree

2 files changed

+0
-94
lines changed

2 files changed

+0
-94
lines changed

‎conn_test.go‎

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import (
1717
"time"
1818

1919
"github.com/gin-gonic/gin"
20-
"github.com/golang/protobuf/ptypes"
21-
"github.com/golang/protobuf/ptypes/duration"
2220

2321
"nhooyr.io/websocket"
2422
"nhooyr.io/websocket/internal/errd"
@@ -27,7 +25,6 @@ import (
2725
"nhooyr.io/websocket/internal/test/xrand"
2826
"nhooyr.io/websocket/internal/xsync"
2927
"nhooyr.io/websocket/wsjson"
30-
"nhooyr.io/websocket/wspb"
3128
)
3229

3330
funcTestConn(t*testing.T) {
@@ -267,24 +264,6 @@ func TestConn(t *testing.T) {
267264
err=c1.Close(websocket.StatusNormalClosure,"")
268265
assert.Success(t,err)
269266
})
270-
271-
t.Run("wspb",func(t*testing.T) {
272-
tt,c1,c2:=newConnTest(t,nil,nil)
273-
274-
tt.goEchoLoop(c2)
275-
276-
exp:=ptypes.DurationProto(100)
277-
err:=wspb.Write(tt.ctx,c1,exp)
278-
assert.Success(t,err)
279-
280-
act:=&duration.Duration{}
281-
err=wspb.Read(tt.ctx,c1,act)
282-
assert.Success(t,err)
283-
assert.Equal(t,"read msg",exp,act)
284-
285-
err=c1.Close(websocket.StatusNormalClosure,"")
286-
assert.Success(t,err)
287-
})
288267
}
289268

290269
funcTestWasm(t*testing.T) {

‎wspb/wspb.go‎

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp