github.com/spf13/pflag — validation proof

Go’s own github.com/spf13/pflag 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, and written beside the conversion: it is not a row of go2cs’s standard-library roster.

Validated 2026-10-14

177 matched · 0 disclosed — Go 1.24.13, linux/amd64, converted package src/github.com/spf13/pflag.

Measured at Release (tiered JIT off), oracle go version go1.24.13 linux/amd64, with no controlling terminal.

Both sides were built with -tags purego,math_big_pure_go,safe.

Input digest sha256-f1fe1ae88c96ff7ae3cb08a9e7a4d2cdd0785c4797be118724a2b08f6eeee6b3: the package’s Go sources, conversion options, target and converter, as its project records them (GoInputDigest).

Verdicts

Test go test go2cs
TestAddFlagSet pass pass
TestAnnotation pass pass
TestBS pass pass
TestBSAsSliceValue pass pass
TestBSBadQuoting pass pass
TestBSCalledTwice pass pass
TestBSDefault pass pass
TestBSWithDefault pass pass
TestBoolFunc pass pass
TestBoolFuncCompat pass pass
TestBoolFuncCompat/error_triggered_by_callback pass pass
TestBoolFuncCompat/regular_parsing pass pass
TestBoolFuncP pass pass
TestBoolFuncUsage pass pass
TestBoolFuncUsage/func_flag_with_placeholder_name pass pass
TestBoolFuncUsage/regular_func_flag pass pass
TestBoolP pass pass
TestBytesBase64 pass pass
TestBytesHex pass pass
TestChangedHelper pass pass
TestChangingArgs pass pass
TestCount pass pass
TestCustomNormalizedNames pass pass
TestDS pass pass
TestDSAsSliceValue pass pass
TestDSCalledTwice pass pass
TestDSDefault pass pass
TestDSWithDefault pass pass
TestDeprecatedFlagInDocs pass pass
TestDeprecatedFlagShorthandInDocs pass pass
TestDeprecatedFlagShorthandUsage pass pass
TestDeprecatedFlagUsage pass pass
TestDeprecatedFlagUsageNormalized pass pass
TestEmptyBS pass pass
TestEmptyDS pass pass
TestEmptyF32S pass pass
TestEmptyF64S pass pass
TestEmptyI32S pass pass
TestEmptyI64S pass pass
TestEmptyIP pass pass
TestEmptyIPNet pass pass
TestEmptyIS pass pass
TestEmptyS2I pass pass
TestEmptyS2I64 pass pass
TestEmptyS2S pass pass
TestEmptySA pass pass
TestEmptySAValue pass pass
TestEmptySS pass pass
TestEmptySSValue pass pass
TestEmptyUIS pass pass
TestEverything pass pass
TestExplicitFalse pass pass
TestExplicitMaybe pass pass
TestExplicitTrue pass pass
TestF32S pass pass
TestF32SAsSliceValue pass pass
TestF32SCalledTwice pass pass
TestF32SDefault pass pass
TestF32SWithDefault pass pass
TestF64S pass pass
TestF64SAsSliceValue pass pass
TestF64SCalledTwice pass pass
TestF64SDefault pass pass
TestF64SWithDefault pass pass
TestFlagSetParse pass pass
TestFunc pass pass
TestFuncCompat pass pass
TestFuncCompat/error_triggered_by_callback pass pass
TestFuncCompat/regular_parsing pass pass
TestFuncP pass pass
TestFuncUsage pass pass
TestFuncUsage/func_flag_with_placeholder_name pass pass
TestFuncUsage/regular_func_flag pass pass
TestGoflags pass pass
TestHelp pass pass
TestHiddenFlagInUsage pass pass
TestHiddenFlagUsage pass pass
TestI32S pass pass
TestI32SAsSliceValue pass pass
TestI32SCalledTwice pass pass
TestI32SDefault pass pass
TestI32SWithDefault pass pass
TestI64S pass pass
TestI64SAsSliceValue pass pass
TestI64SCalledTwice pass pass
TestI64SDefault pass pass
TestI64SWithDefault pass pass
TestIP pass pass
TestIPNet pass pass
TestIPNetBadQuoting pass pass
TestIPNetCalledTwice pass pass
TestIPNetDefault pass pass
TestIPNetWithDefault pass pass
TestIPNets pass pass
TestIPS pass pass
TestIPSAsSliceValue pass pass
TestIPSBadQuoting pass pass
TestIPSCalledTwice pass pass
TestIPSDefault pass pass
TestIPSWithDefault pass pass
TestIS pass pass
TestISCalledTwice pass pass
TestISDefault pass pass
TestISWithDefault pass pass
TestIgnoreUnknownFlags pass pass
TestIgnoreUnknownFlagsBackwardsCompat pass pass
TestImplicitFalse pass pass
TestImplicitTrue pass pass
TestInvalidSyntaxError pass pass
TestInvalidValue pass pass
TestInvalidValueError pass pass
TestMultipleNormalizeFlagNameInvocations pass pass
TestName pass pass
TestNoArgument pass pass
TestNoInterspersed pass pass
TestNormalizationFuncShouldChangeFlagName pass pass
TestNormalizationSetFlags pass pass
TestNormalizationSharedFlags pass pass
TestNotExistError pass pass
TestOutput pass pass
TestParse pass pass
TestParseAll pass pass
TestParseRepeated pass pass
TestParseRepeated/first_parse pass pass
TestParseRepeated/re-parse_with_fewer_args pass pass
TestParseRepeated/re-parse_with_no_args pass pass
TestPrintDefaults pass pass
TestPrintUsage pass pass
TestPrintUsage_2 pass pass
TestS2I pass pass
TestS2I64 pass pass
TestS2I64CalledTwice pass pass
TestS2I64Default pass pass
TestS2I64WithDefault pass pass
TestS2ICalledTwice pass pass
TestS2IDefault pass pass
TestS2IWithDefault pass pass
TestS2S pass pass
TestS2SCalledTwice pass pass
TestS2SDefault pass pass
TestS2SWithDefault pass pass
TestSAAsSliceValue pass pass
TestSACalledTwice pass pass
TestSADefault pass pass
TestSAWithDefault pass pass
TestSAWithSpecialChar pass pass
TestSAWithSquareBrackets pass pass
TestSS pass pass
TestSSAsSliceValue pass pass
TestSSCalledTwice pass pass
TestSSDefault pass pass
TestSSWithComma pass pass
TestSSWithDefault pass pass
TestSSWithSquareBrackets pass pass
TestSetOutput pass pass
TestShortFlag pass pass
TestShortFlagExtraArgument pass pass
TestShorthand pass pass
TestShorthandLookup pass pass
TestTermination pass pass
TestText pass pass
TestTime pass pass
TestTimeDefaultNonZero pass pass
TestTimeDefaultZero pass pass
TestToGoflags pass pass
TestUIS pass pass
TestUISAsSliceValue pass pass
TestUISCalledTwice pass pass
TestUISDefault pass pass
TestUISWithDefault pass pass
TestUnHiddenDeprecatedFlagInDocs pass pass
TestUsage pass pass
TestUserDefined pass pass
TestValueRequiredError pass pass
TestVisitAllFlagOrder pass pass
TestVisitFlagOrder pass pass
TestWordSepNormalizedNames 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.