tree: 4fb5272cd218923b1431f2b447b2a8b34b309c68 [path history] [tgz]
  1. BUILD
  2. clang_attrs.h
  3. clang_attrs_rs_api.rs
  4. clang_attrs_rs_api_impl.cc
  5. comment.h
  6. comment_rs_api.rs
  7. comment_rs_api_impl.cc
  8. doc_comment.h
  9. doc_comment_rs_api.rs
  10. doc_comment_rs_api_impl.cc
  11. empty_rs_test.rs
  12. escaping_keywords.h
  13. escaping_keywords_rs_api.rs
  14. escaping_keywords_rs_api_impl.cc
  15. generate_bindings.bzl
  16. inheritance.h
  17. inheritance_rs_api.rs
  18. inheritance_rs_api_impl.cc
  19. item_order.h
  20. item_order_rs_api.rs
  21. item_order_rs_api_impl.cc
  22. LICENSE_HEADER
  23. lifetimes.h
  24. lifetimes_rs_api.rs
  25. lifetimes_rs_api_impl.cc
  26. namespace.h
  27. namespace_rs_api.rs
  28. namespace_rs_api_impl.cc
  29. no_elided_lifetimes.h
  30. no_elided_lifetimes_rs_api.rs
  31. no_elided_lifetimes_rs_api_impl.cc
  32. nontrivial_type.h
  33. nontrivial_type_rs_api.rs
  34. nontrivial_type_rs_api_impl.cc
  35. polymorphic.h
  36. polymorphic_rs_api.rs
  37. polymorphic_rs_api_impl.cc
  38. private_members.h
  39. private_members_rs_api.rs
  40. private_members_rs_api_impl.cc
  41. README.md
  42. static_methods.h
  43. static_methods_rs_api.rs
  44. static_methods_rs_api_impl.cc
  45. test.sh
  46. trivial_type.h
  47. trivial_type_rs_api.rs
  48. trivial_type_rs_api_impl.cc
  49. types.h
  50. types_rs_api.rs
  51. types_rs_api_impl.cc
  52. unsupported.h
  53. unsupported_rs_api.rs
  54. unsupported_rs_api_impl.cc
  55. update.sh
  56. user_of_base_class.h
  57. user_of_base_class_rs_api.rs
  58. user_of_base_class_rs_api_impl.cc
  59. user_of_imported_type.h
  60. user_of_imported_type_rs_api.rs
  61. user_of_imported_type_rs_api_impl.cc
  62. user_of_unsupported.h
  63. user_of_unsupported_rs_api.rs
  64. user_of_unsupported_rs_api_impl.cc
rs_bindings_from_cc/test/golden/README.md

Golden file tests

Instructions

  • Add a new test by adding a foo.h file and executing ./update.sh. This will generate the corresponding bindings files foo.cc and foo.rs.
  • 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 ./update.sh.