flag — validation proof

Go’s own flag test suite, converted to C# by go2cs, built against the converted standard library, run under the Go-semantics test host, and compared verdict for verdict against a clean go test -json baseline of the same sources. This page is generated by the converter from that comparison — it is the evidence behind the flag row in Validated Test Packages.

Validated 2026-08-25 · converter e2182a59e

24 matched · 0 disclosed — Go 1.23.12, windows/amd64, converted package src/core/flag.

Verdicts

Test go test go2cs
TestChangingArgs pass pass
TestDefineAfterSet pass pass
TestEverything pass pass
TestExitCode pass pass
TestFlagSetParse pass pass
TestGet pass pass
TestGetters pass pass
TestHelp pass pass
TestIntFlagOverflow pass pass
TestInvalidFlags pass pass
TestParse pass pass
TestParseError pass pass
TestPrintDefaults pass pass
TestRangeError pass pass
TestRedefinedFlags pass pass
TestSetOutput pass pass
TestUsage pass pass
TestUsageOutput pass pass
TestUserDefined pass pass
TestUserDefinedBool pass pass
TestUserDefinedBoolFunc pass pass
TestUserDefinedBoolUsage pass pass
TestUserDefinedForCommandLine pass pass
TestUserDefinedFunc pass pass

Excluded declarations

Declarations filtered from both sides of the comparison, and therefore not claimed above: Benchmark, Fuzz and Example declarations the converted host does not execute, plus any test requiring a capability the managed runtime does not provide — a testing member the host has not implemented, or a platform behavior it provably cannot reproduce. Each is named with the capability it needs.