mte/unikernel/duniverse/ocaml-cstruct/ppx_test/errors
2025-11-11 02:07:51 +01:00
..
cenum_id_payload.ml 2025-11-11 02:07:51 +01:00
cenum_id_payload.ml.expected 2025-11-11 02:07:51 +01:00
cenum_invalid_type.ml 2025-11-11 02:07:51 +01:00
cenum_invalid_type.ml.expected 2025-11-11 02:07:51 +01:00
cenum_no_attribute.ml 2025-11-11 02:07:51 +01:00
cenum_no_attribute.ml.expected 2025-11-11 02:07:51 +01:00
cenum_not_a_variant.ml 2025-11-11 02:07:51 +01:00
cenum_not_a_variant.ml.expected 2025-11-11 02:07:51 +01:00
cenum_unknown_attribute.ml 2025-11-11 02:07:51 +01:00
cenum_unknown_attribute.ml.expected 2025-11-11 02:07:51 +01:00
cstruct_attribute_payload.ml 2025-11-11 02:07:51 +01:00
cstruct_attribute_payload.ml.expected 2025-11-11 02:07:51 +01:00
cstruct_duplicate_field.ml 2025-11-11 02:07:51 +01:00
cstruct_duplicate_field.ml.expected 2025-11-11 02:07:51 +01:00
cstruct_len_int32.ml 2025-11-11 02:07:51 +01:00
cstruct_len_int32.ml.expected 2025-11-11 02:07:51 +01:00
cstruct_len_not_int.ml 2025-11-11 02:07:51 +01:00
cstruct_len_not_int.ml.expected 2025-11-11 02:07:51 +01:00
cstruct_len_zero.ml 2025-11-11 02:07:51 +01:00
cstruct_len_zero.ml.expected 2025-11-11 02:07:51 +01:00
cstruct_multiple_len.ml 2025-11-11 02:07:51 +01:00
cstruct_multiple_len.ml.expected 2025-11-11 02:07:51 +01:00
cstruct_not_a_record.ml 2025-11-11 02:07:51 +01:00
cstruct_not_a_record.ml.expected 2025-11-11 02:07:51 +01:00
cstruct_not_an_identifier.ml 2025-11-11 02:07:51 +01:00
cstruct_not_an_identifier.ml.expected 2025-11-11 02:07:51 +01:00
cstruct_several_attributes.ml 2025-11-11 02:07:51 +01:00
cstruct_several_attributes.ml.expected 2025-11-11 02:07:51 +01:00
cstruct_unknown_endian.ml 2025-11-11 02:07:51 +01:00
cstruct_unknown_endian.ml.expected 2025-11-11 02:07:51 +01:00
cstruct_unknown_type.ml 2025-11-11 02:07:51 +01:00
cstruct_unknown_type.ml.expected 2025-11-11 02:07:51 +01:00
dune 2025-11-11 02:07:51 +01:00
dune.inc 2025-11-11 02:07:51 +01:00
gen_tests.ml 2025-11-11 02:07:51 +01:00
pp.ml 2025-11-11 02:07:51 +01:00
README.md 2025-11-11 02:07:51 +01:00

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.ml with 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 on dune.inc
  • run dune promote: it updates dune.inc with the generated test case
  • run dune runtest: it runs the test and displays a diff against the empty expected output
  • run dune promote: it updates something.ml.expected