You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
make the source hyperlinks work in the fuzzing web interface (currently they construct autodoc URLs) #20982
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.fuzzing
fntestTokenize(source: [:0]constu8, expected_token_tags: []constToken.Tag) !void {
vartokenizer=Tokenizer.init(source);
for (expected_token_tags) |expected_token_tag| {
consttoken=tokenizer.next();
trystd.testing.expectEqual(expected_token_tag, token.tag);
}
// Last token should always be eof, even when the last token was invalid,// in which case the tokenizer is in an invalid state, which can only be// recovered by opinionated means outside the scope of this implementation.constlast_token=tokenizer.next();
trystd.testing.expectEqual(Token.Tag.eof, last_token.tag);
trystd.testing.expectEqual(source.len, last_token.loc.start);
trystd.testing.expectEqual(source.len, last_token.loc.end);
}
For example in the above snippet, the expectEqual link points to http://127.0.0.1:41099/#.home.andy.dev.zig.lib.std.std.testing.expectEqual.
Instead, it should point to one of these:
#std.testing.expectEqual
#f123d456 where 123 and 456 are the file and decl indexes respectively.
#/home/andy/dev/zig/lib/std/zig/tokenizer.zig:123:456 where 123 and 456 are line and column respectively.
And then the onHashChange logic needs to respond by loading the appropriate file and scrolling the location into view.
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.fuzzing
Activity