Commit 456a4ea
committed
test(audience-sdk): centralise LogTests inputs and reference Log.Prefix
LogTests had inline literals for the Log.Debug / Log.Warn inputs
("silent", "hello", "something off"), the prefix substring asserted
on emitted lines ("[ImmutableAudience]"), and the warn marker
("WARN").
Adds four file-local consts (SilentDebugInput, EnabledDebugInput,
WarnInput, WarnMarker) at the top of the fixture and migrates the
six call sites. The prefix assertion now references Log.Prefix, the
SDK's existing const for the same string, so a SDK-side prefix
rename automatically propagates.
The "WARN" substring is kept as a local marker rather than slicing
Log.WarnPrefix; "[ImmutableAudience] WARN:" includes punctuation
the assertion does not require. A direct WARN constant matches the
test's actual intent ("the warn pipeline includes WARN somewhere").
Per the user's "everything random goes in a constant" stance.
Follow-up to SDK-272 (centralisation of duplicated literals).1 parent af7a0c0 commit 456a4ea
1 file changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
9 | 17 | | |
10 | 18 | | |
11 | 19 | | |
| |||
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
31 | | - | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
| |||
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
41 | | - | |
| 49 | + | |
42 | 50 | | |
43 | 51 | | |
44 | | - | |
45 | | - | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
53 | | - | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
56 | | - | |
57 | | - | |
| 64 | + | |
| 65 | + | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
0 commit comments