✗
Failing This test is currently failing.
Failed: backend
Failure Output
Showing last 10 of 46 lines
install transitive failure
+- install backend transitive failure
+- compile exe backend Debug native transitive failure
+- compile obj backend_output Debug native 4 errors
+- compile obj backend_output Debug native (reused)
error: the following build command failed with exit code 1:
.zig-cache/o/8995185c513c5dcacb507f0d585d2b80/build /opt/homebrew/Cellar/zig/0.15.2_1/bin/zig /opt/homebrew/Cellar/zig/0.15.2_1/lib/zig /Users/larsde/src/koru/tests/regression
... [truncated - 8KB total] Code
// Test: InvocationMeta provides call site metadata for comptime introspection
// This enables conditional compilation based on flow annotations
~import std/io
const std = @import("std");
// A comptime event that receives metadata about its invocation
~[comptime]pub event check-config { meta: InvocationMeta }
| matched []const u8
~proc check-config|zig {
// meta.annotations contains the flow annotations like ["release"], ["debug"]
// meta.path contains the full path like "check_config"
// meta.location contains the source location
if (meta.annotations.len > 0) {
// Return the first annotation as the config name
return .{ .matched = meta.annotations[0] };
} else {
}
}
// Test 1: Invocation with [release] annotation
~[release]check-config()
| matched _ |> std/io:print.ln("Config: release")
| no-annotation |> std/io:print.ln("No config")
// Test 2: Invocation with [debug] annotation
~[debug]check-config()
| matched _ |> std/io:print.ln("Config: debug")
| no-annotation |> std/io:print.ln("No config")
// Test 3: Invocation without annotation
~check-config()
| matched _ |> std/io:print.ln("Config: unexpected")
| no-annotation |> std/io:print.ln("No config (expected)")
Test Configuration
MUST_RUN