tree: b2401bd1c0be2ce43a11f924fd8064090668138b [path history] [tgz]
  1. BUILD
  2. composable_bridging.rs
  3. composable_bridging_cc_api.h
  4. composable_bridging_cc_api_impl.rs
  5. empty_cc_test.cc
  6. golden_test.bzl
  7. non_trivially_destructible.rs
  8. non_trivially_destructible_cc_api.h
  9. non_trivially_destructible_cc_api_impl.rs
  10. README.md
  11. struct_with_conflicting_fields_and_member_functions.rs
  12. struct_with_conflicting_fields_and_member_functions_cc_api.h
  13. struct_with_conflicting_fields_and_member_functions_cc_api_impl.rs
  14. type_aliases.rs
  15. type_aliases_cc_api.h
  16. type_aliases_cc_api_impl.rs
  17. uses.rs
  18. uses_cc_api.h
  19. uses_cc_api_impl.rs
cc_bindings_from_rs/test/golden/README.md

Golden file tests

Instructions

  • Add a new test by adding a foo.rs file, create two empty files named foo_cc_api.h and foo_cc_api_impl.rs, and then executing common/golden_update.sh. This will generate the corresponding bindings files.
  • If a test in this directory fails, look at the output. It should contain a diff of the failure.
  • If you get spurious failures in this directory: Run common/golden_update.sh.