MCPcopy Create free account
hub / github.com/NetHack/NetHack / wiz_fuzzer

Function wiz_fuzzer

src/wizcmds.c:548–564  ·  view source on GitHub ↗

#debugfuzzer command - fuzztest the program */

Source from the content-addressed store, hash-verified

546
547/* #debugfuzzer command - fuzztest the program */
548int
549wiz_fuzzer(void)
550{
551 if (flags.suppress_alert < FEATURE_NOTICE_VER(3,7,0)) {
552 pline("The fuzz tester will make NetHack execute random keypresses.");
553 There("is no conventional way out of this mode.");
554 }
555 if (paranoid_query(TRUE, "Do you want to start fuzz testing?")) {
556 /* Thoth, take the reins */
557 if (y_n("Do you want to call panic() after impossible()?") == 'n') {
558 iflags.debug_fuzzer = fuzzer_impossible_continue;
559 } else {
560 iflags.debug_fuzzer = fuzzer_impossible_panic;
561 }
562 }
563 return ECMD_OK;
564}
565
566/* #polyself command - change hero's form */
567int

Callers

nothing calls this directly

Calls 3

ThereFunction · 0.85
paranoid_queryFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected