Repository navigation
Commit 2ff902f
committed
test: check the metadata writer's output byte by byte
The writer and the runtime have to agree on the metadata's layout, and
only the device suite checked that, indirectly and on one set of field
widths. WriterFormatTest writes a small hand-built tree and reads it
back with a parser that knows only the format and fails unless every
byte of the value stream belongs to exactly one record.
It runs at three sets of widths: one-byte fields, the two- and
three-byte ones ordinary apps get, and the widened ones. It covers
signatures shared between methods, a 256-type signature (and a 257-type
one being refused), a class with only static members, getter-only and
setter-only properties, and static fields declared by the class itself
and by a base class.
The generator's unit tests were not run in CI. runMetadataGeneratorTests
runs them, and the pull request workflow now calls it.1 parent 5776ab3 commit 2ff902f
3 files changed
Lines changed: 528 additions & 0 deletions
File tree
- .github/workflows
- test-app/build-tools/android-metadata-generator/src/test/java/com/telerik/metadata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
457 | 468 | | |
458 | 469 | | |
459 | 470 | | |
| |||
0 commit comments