✗
Failing This test is currently failing.
Failed: frontend
Failure Output
Showing last 10 of 25 lines
16 | |> metrics()
| ^
hint: '_' has meaning only as `| branch [binding] |> _`. Chaining `|> _` after another step is meaningless — drop the `|> _`.
error[KORU010]: '_' is only legal as the body of a branch handler
--> tests/regression/300_ADVANCED_FEATURES/310_COMPTIME/310_013_tap_chains/input.kz:20:0
|
20 | |> _
| ^
hint: '_' has meaning only as `| branch [binding] |> _`. Outside a branch handler body — top-level void chain, split-pipeline tail — `|> _` is meaningless. Code
// Test tap chains - tap invokes event that also has taps
// This verifies TAP_FUNCTION_CONTEXT prevents infinite recursion
const std = @import("std");
~import std/taps
~tor main-flow {}
~tor logger {}
|> logger()
|> _
// Question: Should this tap on logger fire when logger is invoked from a tap?
// Answer: YES - chained taps fire by default (full observability)
// Use [opaque] annotation if you need to hide internal implementation from tap matching
~tap(logger -> *)
|> metrics()
|> _
~main-flow()
|> _Expected output
Main flow executed
Logger invoked
Metrics collected
Test Configuration
MUST_RUN