| .. | ||
| cenum_id_payload.ml | ||
| cenum_id_payload.ml.expected | ||
| cenum_invalid_type.ml | ||
| cenum_invalid_type.ml.expected | ||
| cenum_no_attribute.ml | ||
| cenum_no_attribute.ml.expected | ||
| cenum_not_a_variant.ml | ||
| cenum_not_a_variant.ml.expected | ||
| cenum_unknown_attribute.ml | ||
| cenum_unknown_attribute.ml.expected | ||
| cstruct_attribute_payload.ml | ||
| cstruct_attribute_payload.ml.expected | ||
| cstruct_duplicate_field.ml | ||
| cstruct_duplicate_field.ml.expected | ||
| cstruct_len_int32.ml | ||
| cstruct_len_int32.ml.expected | ||
| cstruct_len_not_int.ml | ||
| cstruct_len_not_int.ml.expected | ||
| cstruct_len_zero.ml | ||
| cstruct_len_zero.ml.expected | ||
| cstruct_multiple_len.ml | ||
| cstruct_multiple_len.ml.expected | ||
| cstruct_not_a_record.ml | ||
| cstruct_not_a_record.ml.expected | ||
| cstruct_not_an_identifier.ml | ||
| cstruct_not_an_identifier.ml.expected | ||
| cstruct_several_attributes.ml | ||
| cstruct_several_attributes.ml.expected | ||
| cstruct_unknown_endian.ml | ||
| cstruct_unknown_endian.ml.expected | ||
| cstruct_unknown_type.ml | ||
| cstruct_unknown_type.ml.expected | ||
| dune | ||
| dune.inc | ||
| gen_tests.ml | ||
| pp.ml | ||
| README.md | ||
This tests error cases for ppx_cstruct.
It only deals with the errors raised by the ppx itself (such as when the type is not supported), not errors in the generated code.
To add a test case:
- create a file in this directory named
something.mlwith the error case - create an empty file named
something.ml.expected - don't forget to add these files to git
- run
dune runtest: it displays a diff ondune.inc - run
dune promote: it updatesdune.incwith the generated test case - run
dune runtest: it runs the test and displays a diff against the empty expected output - run
dune promote: it updatessomething.ml.expected