Skip to content

Commit d6f1dfa

Browse files
author
Alvaro Muñoz
committed
update tests
1 parent 4d6b35f commit d6f1dfa

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package main
22

33
import (
44
"context"
5+
"fmt"
56
"net/http"
67
"time"
78

@@ -35,6 +36,7 @@ func (s *notesService) CreateNote(ctx context.Context, params *notes.CreateNoteP
3536
func (s *notesService) GetAllNotes(ctx context.Context, params *notes.GetAllNotesParams) (*notes.GetAllNotesResult, error) { // test: routeHandler, request
3637
allNotes := make([]*notes.Note, 0)
3738

39+
fmt.Println(params)
3840
for _, note := range s.Notes {
3941
n := note
4042
allNotes = append(allNotes, &n)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ passingPositiveTests
55
| PASSED | message | rpc/notes/service.pb.go:86:32:86:49 | comment |
66
| PASSED | message | rpc/notes/service.pb.go:133:33:133:50 | comment |
77
| PASSED | message | rpc/notes/service.pb.go:171:33:171:50 | comment |
8-
| PASSED | request | server/main.go:17:111:17:140 | comment |
8+
| PASSED | request | server/main.go:18:111:18:140 | comment |
9+
| PASSED | request | server/main.go:36:126:36:155 | comment |
910
| PASSED | serverConstructor | rpc/notes/service.twirp.go:334:81:334:106 | comment |
1011
| PASSED | serviceClient | rpc/notes/service.twirp.go:44:42:44:63 | comment |
1112
| PASSED | serviceClient | rpc/notes/service.twirp.go:183:38:183:59 | comment |
1213
| PASSED | serviceInterface | rpc/notes/service.twirp.go:34:31:34:55 | comment |
1314
| PASSED | serviceServer | rpc/notes/service.twirp.go:322:34:322:55 | comment |
14-
| PASSED | ssrfSink | client/main.go:12:90:12:106 | comment |
15+
| PASSED | ssrfSink | client/main.go:12:89:12:105 | comment |
1516
failingPositiveTests
16-
| FAILED | request | server/main.go:35:126:35:155 | comment |
1717
passingNegativeTests
1818
| PASSED | !handler | rpc/notes/service.twirp.go:87:109:87:125 | comment |
1919
| PASSED | !handler | rpc/notes/service.twirp.go:116:113:116:129 | comment |
@@ -23,5 +23,5 @@ passingNegativeTests
2323
| PASSED | !handler | rpc/notes/service.twirp.go:255:109:255:125 | comment |
2424
| PASSED | !handler | rpc/notes/service.twirp.go:272:120:272:136 | comment |
2525
| PASSED | !handler | rpc/notes/service.twirp.go:301:124:301:140 | comment |
26-
| PASSED | !ssrfSink | server/main.go:54:51:54:68 | comment |
26+
| PASSED | !ssrfSink | server/main.go:56:51:56:68 | comment |
2727
failingNegativeTests

0 commit comments

Comments
 (0)