tree: 533134ad0d7bedf0b4ffef98e5a06baa53dacb02 [path history] [tgz]
  1. BUILD
  2. empty_cc_test.cc
  3. golden_test.bzl
  4. README.md
  5. struct_with_conflicting_fields_and_member_functions.rs
  6. struct_with_conflicting_fields_and_member_functions_cc_api.h
  7. struct_with_conflicting_fields_and_member_functions_cc_api_impl.rs
  8. type_aliases.rs
  9. type_aliases_cc_api.h
  10. type_aliases_cc_api_impl.rs
  11. uses.rs
  12. uses_cc_api.h
  13. 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.