aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/ir_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-07-23 17:10:22 +0900
committerOphestra <cat@gensokyo.uk>2026-07-23 17:10:22 +0900
commite0eec632d0a7cca2fb09e026997fa9a39dcd7504 (patch)
tree705ecc285e4fe05c3bba126a276c2e9e28ae9ec8 /internal/pkg/ir_test.go
parent67dbb68818026f3d7a64e9519cf1aac36468b7c9 (diff)
internal/pkg: optional executable files
This enables a FileArtifact implementation to specify whether its resulting file should be executable. This change also implements shebang and ELF magic checks in the file artifact. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/ir_test.go')
-rw-r--r--internal/pkg/ir_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/pkg/ir_test.go b/internal/pkg/ir_test.go
index 963cdc04..312474bc 100644
--- a/internal/pkg/ir_test.go
+++ b/internal/pkg/ir_test.go
@@ -4,7 +4,6 @@ import (
"bytes"
"io"
"io/fs"
- "math"
"reflect"
"testing"
@@ -154,7 +153,7 @@ func TestRevision(t *testing.T) {
p := buf.Bytes()
p[8] = 0xfd
- wantErr := pkg.RevisionError{math.MaxUint64 - 2, math.MaxUint64}
+ wantErr := pkg.RevisionError{0xfd, 0}
if _, err := c.NewDecoder(
bytes.NewReader(p),
).Decode(); !reflect.DeepEqual(err, wantErr) {