google / emboss

Emboss is a tool for generating code that reads and writes binary data structures.
Apache License 2.0
68 stars 21 forks source link

Move test_util and fix header_generator_test #87

Closed jasongraffius closed 1 year ago

jasongraffius commented 1 year ago

Moves test_util into compiler/util/ so it can be used by the backend while minimizing importing frontend files. Additionally fixes the following in header_generator_test:

This change also adds a (blank) __init__.py to compiler/ and compiler/util/ so that they are both importable by unittest. This means that running `python -m unittest discover -p '*_test.py' from the main emboss repository directory should run all python tests in the compiler.