Add extractor test for go 1.16

This commit is contained in:
Sauyon Lee
2021-02-18 11:49:18 -08:00
parent fc9bc68829
commit 62ae3ec7c5
4 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1 @@
| embeddedfile.go:9:5:9:5 | e |

View File

@@ -0,0 +1,5 @@
import go
from Variable v
where exists(v.getDeclaration())
select v

View File

@@ -0,0 +1,15 @@
package main
import (
_ "embed"
"fmt"
)
//go:embed file
var e string = "hi"
func main() {
fmt.Println(e)
e = "why"
fmt.Println(e)
}

View File

@@ -0,0 +1,2 @@
file
contents