Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 92aad7e

Browse files
author
Sauyon Lee
committed
Fix dependency stubs for websocket framework
1 parent a2e2e26 commit 92aad7e

133 files changed

Lines changed: 532 additions & 21916 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ql/test/library-tests/semmle/go/frameworks/Websocket/DialFunction.expected

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
| DialFunction.go:25:2:25:43 | call to Dial | DialFunction.go:25:17:25:30 | untrustedInput |
2-
| DialFunction.go:28:2:28:29 | call to DialConfig | DialFunction.go:27:35:27:48 | untrustedInput |
3-
| DialFunction.go:30:2:30:49 | call to Dial | DialFunction.go:30:30:30:43 | untrustedInput |
4-
| DialFunction.go:33:2:33:33 | call to Dial | DialFunction.go:33:14:33:27 | untrustedInput |
5-
| DialFunction.go:35:2:35:56 | call to DialContext | DialFunction.go:35:37:35:50 | untrustedInput |
6-
| DialFunction.go:37:2:37:44 | call to Dial | DialFunction.go:37:30:37:43 | untrustedInput |
7-
| DialFunction.go:40:2:40:45 | call to Dial | DialFunction.go:40:31:40:44 | untrustedInput |
8-
| DialFunction.go:42:2:42:31 | call to BuildProxy | DialFunction.go:42:17:42:30 | untrustedInput |
9-
| DialFunction.go:43:2:43:24 | call to New | DialFunction.go:43:10:43:23 | untrustedInput |
1+
| DialFunction.go:21:2:21:43 | call to Dial | DialFunction.go:21:17:21:30 | untrustedInput |
2+
| DialFunction.go:24:2:24:29 | call to DialConfig | DialFunction.go:23:35:23:48 | untrustedInput |
3+
| DialFunction.go:26:2:26:49 | call to Dial | DialFunction.go:26:30:26:43 | untrustedInput |
4+
| DialFunction.go:29:2:29:33 | call to Dial | DialFunction.go:29:14:29:27 | untrustedInput |
5+
| DialFunction.go:31:2:31:56 | call to DialContext | DialFunction.go:31:37:31:50 | untrustedInput |
6+
| DialFunction.go:33:2:33:44 | call to Dial | DialFunction.go:33:30:33:43 | untrustedInput |
7+
| DialFunction.go:36:2:36:45 | call to Dial | DialFunction.go:36:31:36:44 | untrustedInput |
8+
| DialFunction.go:38:2:38:31 | call to BuildProxy | DialFunction.go:38:17:38:30 | untrustedInput |
9+
| DialFunction.go:39:2:39:24 | call to New | DialFunction.go:39:10:39:23 | untrustedInput |
1010
| WebsocketReadWrite.go:30:12:30:42 | call to Dial | WebsocketReadWrite.go:30:27:30:29 | uri |
1111
| WebsocketReadWrite.go:40:14:40:50 | call to Dial | WebsocketReadWrite.go:40:42:40:44 | uri |
1212
| WebsocketReadWrite.go:50:17:50:37 | call to Dial | WebsocketReadWrite.go:50:29:50:31 | uri |

ql/test/library-tests/semmle/go/frameworks/Websocket/DialFunction.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
package main
22

3-
//go:generate depstubber -vendor github.com/gobwas/ws Dialer Dial
4-
//go:generate depstubber -vendor github.com/gorilla/websocket Dialer
53
//go:generate depstubber -vendor github.com/sacOO7/gowebsocket "" New,BuildProxy
6-
//go:generate depstubber -vendor golang.org/x/net/websocket "" Dial,NewConfig,DialConfig
7-
//go:generate depstubber -vendor nhooyr.io/websocket "" Dial
84

95
import (
106
"context"

ql/test/library-tests/semmle/go/frameworks/Websocket/WebsocketReadWrite.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package main
22

3-
//go:generate depstubber -vendor github.com/gobwas/ws "" ReadFrame,WriteFrame,NewTextFrame,Dial
3+
//go:generate depstubber -vendor github.com/gobwas/ws Dialer ReadFrame,WriteFrame,NewTextFrame,Dial
44
//go:generate depstubber -vendor github.com/gorilla/websocket Dialer ReadJSON,WriteJSON,NewPreparedMessage
5-
//go:generate depstubber -vendor golang.org/x/net/websocket Codec Dial
5+
//go:generate depstubber -vendor golang.org/x/net/websocket Codec Dial,NewConfig,DialConfig
66
//go:generate depstubber -vendor nhooyr.io/websocket "" Dial
77

88
import (

ql/test/library-tests/semmle/go/frameworks/Websocket/go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.14
55
require (
66
github.com/gobwas/ws v1.0.3
77
github.com/gorilla/websocket v1.4.2
8-
github.com/sacOO7/go-logger v0.0.0-20180719173527-9ac9add5a50d // indirect
98
github.com/sacOO7/gowebsocket v0.0.0-20180719182212-1436bb906a4e
109
golang.org/x/net v0.0.0-20200505041828-1ed23360d12c
1110
nhooyr.io/websocket v1.8.5

ql/test/library-tests/semmle/go/frameworks/Websocket/vendor/github.com/gobwas/httphead/LICENSE

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

ql/test/library-tests/semmle/go/frameworks/Websocket/vendor/github.com/gobwas/httphead/README.md

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

ql/test/library-tests/semmle/go/frameworks/Websocket/vendor/github.com/gobwas/httphead/cookie.go

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

0 commit comments

Comments
 (0)