This commit is contained in:
parent
f1457af6be
commit
e5baba175b
12 changed files with 221 additions and 4 deletions
4
src/scanner/Result.go
Normal file
4
src/scanner/Result.go
Normal file
|
@ -0,0 +1,4 @@
|
|||
package scanner
|
||||
|
||||
// Result contains everything the compiler needs to start a build.
|
||||
type Result struct{}
|
10
src/scanner/Scan.go
Normal file
10
src/scanner/Scan.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package scanner
|
||||
|
||||
import (
|
||||
"git.urbach.dev/cli/q/src/build"
|
||||
)
|
||||
|
||||
// Scan scans all the files included in the build.
|
||||
func Scan(b *build.Build) Result {
|
||||
return Result{}
|
||||
}
|
13
src/scanner/Scan_test.go
Normal file
13
src/scanner/Scan_test.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package scanner_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.urbach.dev/cli/q/src/build"
|
||||
"git.urbach.dev/cli/q/src/scanner"
|
||||
)
|
||||
|
||||
func TestScan(t *testing.T) {
|
||||
b := build.New("../../examples/hello")
|
||||
scanner.Scan(b)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue