Added a build matrix for tests
All checks were successful
/ test (push) Successful in 21s

This commit is contained in:
Eduard Urbach 2025-07-09 16:14:32 +02:00
parent 64a80f6090
commit e6a6be1181
Signed by: ed
GPG key ID: 49226B848C78F6C8
4 changed files with 43 additions and 49 deletions

23
src/linker/Write_test.go Normal file
View file

@ -0,0 +1,23 @@
package linker_test
import (
"testing"
"git.urbach.dev/cli/q/src/build"
"git.urbach.dev/cli/q/src/compiler"
"git.urbach.dev/cli/q/src/exe"
"git.urbach.dev/cli/q/src/linker"
"git.urbach.dev/go/assert"
)
func TestWrite(t *testing.T) {
b := build.New("../../examples/hello")
b.Matrix(func(b *build.Build) {
env, err := compiler.Compile(b)
assert.Nil(t, err)
writer := &exe.Discard{}
linker.Write(writer, b, env)
})
}