Reorganized file structure
This commit is contained in:
parent
8b595ef3ce
commit
722d07c321
57 changed files with 431 additions and 614 deletions
24
src/build/Build_test.go
Normal file
24
src/build/Build_test.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
package build_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.akyoto.dev/cli/q/src/build"
|
||||
"git.akyoto.dev/go/assert"
|
||||
)
|
||||
|
||||
func TestBuild(t *testing.T) {
|
||||
b := build.New("../../examples/hello")
|
||||
assert.Nil(t, b.Run())
|
||||
}
|
||||
|
||||
func TestSkipExecutable(t *testing.T) {
|
||||
b := build.New("../../examples/hello")
|
||||
b.WriteExecutable = false
|
||||
assert.Nil(t, b.Run())
|
||||
}
|
||||
|
||||
func TestNonExisting(t *testing.T) {
|
||||
b := build.New("does-not-exist")
|
||||
assert.NotNil(t, b.Run())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue