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
{{ message }}
Repository navigation
Add full-output transpile tests for classes inside #if blocks #1900
A class transpiles to several functions: __Foo_builder, one __Foo_method_* per method, and the function Foo() factory. When the class is inside an #if / #else block, all of them must be emitted inside that same branch. Otherwise the device compiles a factory without its methods, or methods for a class it never declares.
The existing tests only check substrings of the output. Add full-output transpile tests (testTranspile) that cover:
a class with methods inside #if DEBUG, with and without DEBUG declared
the same class name declared in both #if and #else with different members
a child class extending a parent, both inside the same #if
an active class and an inactive class in the same file
Activity