006 event taps

✗ Failing This test is currently failing.

Failed: backend-exec

Failure Output

Showing last 10 of 11 lines
  --> tests/regression/300_ADVANCED_FEATURES/310_COMPTIME/310_006_event_taps/input.kz:27:0

❌ Compiler coordination error: Incomplete branch coverage
error: CompilerCoordinationFailed
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/310_COMPTIME/310_006_event_taps/backend.zig:10774:17: 0x10437a4af in emit (backend)
                return error.CompilerCoordinationFailed;
                ^
/Users/larsde/src/koru/tests/regression/300_ADVANCED_FEATURES/310_COMPTIME/310_006_event_taps/backend.zig:10858:28: 0x10437b2b7 in main (backend)
    const generated_code = try RuntimeEmitter.emit(compile_allocator, final_ast);
                           ^

Code

// Test 310_006: Event Taps (Library Syntax)
// Validates that ~tap() observes and reacts to event transitions

const std = @import("std");
~import "$std/taps"

// Event with a branch to tap (tap_target = test scaffolding name)
~event hello {}

~proc hello {
    std.debug.print("Main flow executed\n", .{});
}

// Void observer event
~event tap_action {}

~proc tap_action {
    std.debug.print("TAP observed!\n", .{});
}

// Tap that observes hello and logs via tap_action
~tap(hello -> *)
| tap_target |> tap_action()

// Main flow that triggers the tap
~hello()
| tap_target |> _
input.kz

Expected

Main flow executed
TAP observed!

Test Configuration

MUST_RUN