You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(audience-sdk): centralise JsonReaderTests scenario fixtures and malformed inputs
JsonReaderTests had inline scenario fixtures across the deserialise
tests:
- "small" / "big" (IntAndLong)
- "t" / "f" / "n" (BoolAndNull)
- "arr" / "two" (Array)
- "abc" (RoundTripViaSerializer anonymousId)
- "76561198012345" (RoundTripViaSerializer userId; same string also
used in ImmutableAudienceTests' Steam Identify test)
- "{not valid}" / "{\"a\":}" / "{\"a\":\"unterminated" (three
malformed inputs in MalformedThrows)
Adds a file-local const block at the top of the fixture grouping the
keys, the array-element value, the anonymousId placeholder, and the
three malformed inputs. Each test now interpolates the encoded JSON
form from its key consts so a key rename touches one place. The
"76561198012345" duplication is removed by referencing
TestFixtures.SteamId64 (already centralised).
Per the user's "everything random goes in a constant" stance.
Follow-up to SDK-272 (centralisation of duplicated literals).
0 commit comments