Adds test coverage for invalid empty strings (e.g. ""), non-numeric strings (e.g. "abc"), and partially-numeric strings (e.g. "12abc"), as well as valid exponential numeric strings ("1e5) We will target enforcing non-conformant cases that should have failed to parse but didn't in upb in v30.x (our ~annual breaking release in some languages). Conformance failures to accept input we previously failed on can be landed at any time. PiperOrigin-RevId: 694269337pull/19081/head
parent
dceaac9980
commit
cb304bde36
11 changed files with 79 additions and 97 deletions
@ -1,24 +1,11 @@ |
||||
Required.Editions_Proto2.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.DoubleFieldStringValueNonNumeric # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.DoubleFieldStringValuePartiallyNumeric # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.FloatFieldStringValueNonNumeric # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.FloatFieldStringValuePartiallyNumeric # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Int32FieldQuotedExponentialValue.* # Failed to parse input or produce output. |
||||
|
@ -0,0 +1 @@ |
||||
Required.*.JsonInput.Int32FieldQuotedExponentialValue.* # Failed to parse input or produce output. |
@ -0,0 +1 @@ |
||||
Required.*.JsonInput.Int32FieldQuotedExponentialValue.* # Failed to parse input or produce output. |
@ -1,24 +1,11 @@ |
||||
Required.Editions_Proto2.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.DoubleFieldStringValueNonNumeric # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.DoubleFieldStringValuePartiallyNumeric # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.FloatFieldStringValueNonNumeric # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.FloatFieldStringValuePartiallyNumeric # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Int32FieldQuotedExponentialValue.* # Failed to parse input or produce output. |
||||
|
@ -1,24 +1,11 @@ |
||||
Required.Editions_Proto2.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto2.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Editions_Proto3.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto2.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.Proto3.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.DoubleFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.FloatFieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Int32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Int64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Uint32FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Uint64FieldEmptyString # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.DoubleFieldStringValueNonNumeric # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.DoubleFieldStringValuePartiallyNumeric # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.FloatFieldStringValueNonNumeric # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.FloatFieldStringValuePartiallyNumeric # Should have failed to parse, but didn't. |
||||
Required.*.JsonInput.Int32FieldQuotedExponentialValue.* # Failed to parse input or produce output. |
||||
|
Loading…
Reference in new issue