Skip to content

Commit e322076

Browse files
committed
Fix odd hand-rolled inline expectations test
1 parent f1b6920 commit e322076

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

go/ql/test/library-tests/semmle/go/frameworks/Twirp/tests.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ passingPositiveTests
66
| PASSED | message | rpc/notes/service.pb.go:86:32:86:47 | comment |
77
| PASSED | message | rpc/notes/service.pb.go:133:33:133:48 | comment |
88
| PASSED | message | rpc/notes/service.pb.go:171:33:171:48 | comment |
9-
| PASSED | request | server/main.go:19:111:19:140 | comment |
9+
| PASSED | request | server/main.go:19:111:19:172 | comment |
1010
| PASSED | request | server/main.go:40:126:40:155 | comment |
1111
| PASSED | serverConstructor | rpc/notes/service.twirp.go:334:81:334:106 | comment |
1212
| PASSED | serviceClient | rpc/notes/service.twirp.go:44:42:44:63 | comment |
1313
| PASSED | serviceClient | rpc/notes/service.twirp.go:183:38:183:59 | comment |
1414
| PASSED | serviceInterface | rpc/notes/service.twirp.go:34:31:34:55 | comment |
1515
| PASSED | serviceServer | rpc/notes/service.twirp.go:322:34:322:55 | comment |
16-
| PASSED | ssrf | server/main.go:30:97:30:119 | comment |
16+
| PASSED | ssrf | server/main.go:30:97:30:150 | comment |
1717
| PASSED | ssrfSink | client/main.go:12:89:12:105 | comment |
18-
| PASSED | ssrfSink | server/main.go:30:97:30:119 | comment |
18+
| PASSED | ssrfSink | server/main.go:30:97:30:150 | comment |
1919
| PASSED | ssrfSink | server/main.go:31:97:31:120 | comment |
2020
failingPositiveTests
2121
passingNegativeTests

go/ql/test/library-tests/semmle/go/frameworks/Twirp/tests.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import semmle.go.security.RequestForgery
66
class InlineTest extends LineComment {
77
string tests;
88

9-
InlineTest() { tests = this.getText().regexpCapture("\\s*test:(.*)", 1) }
9+
InlineTest() { tests = this.getText().regexpCapture(".*test:\\s*(.*)", 1) }
1010

1111
string getPositiveTest() {
1212
result = tests.trim().splitAt(",").trim() and not result.matches("!%")

0 commit comments

Comments
 (0)