?
Unknown Status unknown.
Code
// Test: Registry Scope - Debug Flag Enabled
// Ensures [debug] entries are included when compiled with --debug.
~import std/runtime
const std = @import("std");
~pub tor debug.dump-state {}
~proc debug.dump-state|zig {
}
~[registry:scope(admin)]std/runtime:register {
[debug]debug:*
}
pub fn main() void {
const segments = [_][]const u8{ "debug", "dump_state" };
const path = Path{
.module_qualifier = null,
.segments = &segments,
};
const inv = Invocation{
.path = path,
.args = &.{},
};
var result: DispatchResult = undefined;
dispatch_admin(&inv, &result) catch |err| {
std.debug.print("Dispatch error: {}\n", .{err});
std.process.exit(1);
};
if (!std.mem.eql(u8, result.branch, "dumped")) {
std.debug.print("Unexpected branch: {s}\n", .{result.branch});
std.process.exit(1);
}
}
Flows
flow ~register click a branch to expand · @labels scroll to their anchor
register (source: [debug]debug:*)
Test Configuration
MUST_RUN
Compiler Flags:
--debug