Skip to content

Commit d29ccb0

Browse files
authored
Remove old test
1 parent 4ef3d31 commit d29ccb0

File tree

1 file changed

+0
-23
lines changed
  • go/ql/test/library-tests/semmle/go/dataflow/flowsources/local/database

1 file changed

+0
-23
lines changed

go/ql/test/library-tests/semmle/go/dataflow/flowsources/local/database/test.go

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,6 @@ import (
1010
"go.mongodb.org/mongo-driver/mongo"
1111
)
1212

13-
func mongoDB(ctx context.Context, userCollection mongo.Collection) {
14-
type User struct {
15-
}
16-
17-
var u1 User
18-
19-
result := userCollection.FindOne(ctx, nil) // $source
20-
result.Decode(&u1)
21-
22-
fmt.Println(u1)
23-
}
24-
2513
func gogf(g gdb.DB) {
2614
u1, err := g.GetOne("SELECT user from users") // $source
2715

@@ -49,14 +37,3 @@ func couchbase(coll *gocb.Collection) {
4937

5038
fmt.Println(user)
5139
}
52-
53-
func GoRqlite(conn *gorqlite.Connection) {
54-
var id int64
55-
var name string
56-
57-
rows, err := conn.QueryOne("select id, name from foo where id = 1") // $source
58-
if err != nil {
59-
return
60-
}
61-
rows.Scan(&id, &name)
62-
}

0 commit comments

Comments
 (0)