Code Room
Vibe codingHardvc-g152
Subject Ai fuzz testingLevel Senior–Staff~22 minCommon in Algorithms & data structures interviewsIndustries Software development

Question

An AI agent wrote a Go fuzz test for your custom URL-path parser. It looks thorough:

go
func FuzzParsePath(f *testing.F) {    f.Add("/a/b/c")    f.Fuzz(func(t *testing.T, s string) {        _, err := ParsePath(s)        _ = err // parser shouldn't panic    })}

The agent says 'this fuzzes the parser and will find crashes.' What is this fuzz test actually checking, what is it missing, and how would you give it a real oracle?

What a strong answer looks like

Treat the AI’s output as a draft to verify, not an answer to trust. Name the specific flaw and the input that triggers it, say how you’d catch it — tests, edge cases, reading critically — and how you’d re-prompt or decompose to get it right.

Describe your solution

Vibe coding: describe the solution in plain language (or narrate it) and the coach grades your approach. Generating runnable code from your description is coming next.

Run or narrate your approach, then ask the coach.