File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test/library-tests/semmle/go/frameworks/Twirp Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ module Twirp {
124
124
ServerConstructor ( ) {
125
125
exists ( ServiceServerType c , ServiceInterfaceType i |
126
126
this .getName ( ) .toLowerCase ( ) = "new" + c .getName ( ) .toLowerCase ( ) and
127
- this .getParameter ( 0 ) . getType ( ) = i .getNamedType ( ) and
127
+ this .getParameterType ( 0 ) = i .getNamedType ( ) and
128
128
this .getDeclaration ( ) .getLocation ( ) .getFile ( ) instanceof ServicesGeneratedFile
129
129
)
130
130
}
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ passingPositiveTests
2
2
| PASSED | clientConstructor | rpc/notes/service.twirp.go:53:114:53:139 | comment |
3
3
| PASSED | clientConstructor | rpc/notes/service.twirp.go:192:110:192:135 | comment |
4
4
| PASSED | message | rpc/notes/service.pb.go:23:20:23:35 | comment |
5
- | PASSED | message | rpc/notes/service.pb.go:86:32:86:49 | comment |
6
- | PASSED | message | rpc/notes/service.pb.go:133:33:133:50 | comment |
7
- | PASSED | message | rpc/notes/service.pb.go:171:33:171:50 | comment |
5
+ | PASSED | message | rpc/notes/service.pb.go:86:32:86:47 | comment |
6
+ | PASSED | message | rpc/notes/service.pb.go:133:33:133:48 | comment |
7
+ | PASSED | message | rpc/notes/service.pb.go:171:33:171:48 | comment |
8
8
| PASSED | request | server/main.go:19:111:19:140 | comment |
9
9
| PASSED | request | server/main.go:40:126:40:155 | comment |
10
10
| PASSED | serverConstructor | rpc/notes/service.twirp.go:334:81:334:106 | comment |
You can’t perform that action at this time.
0 commit comments