tree: 71a8eb0ffcb5f926e38d0870d6d63ec0d65ddd68 [path history] [tgz]
  1. bitfields.h
  2. bitfields_rs_api.rs
  3. bitfields_rs_api_impl.cc
  4. bridge_type.h
  5. bridge_type_rs_api.rs
  6. bridge_type_rs_api_impl.cc
  7. BUILD
  8. c_abi_compatible_type.h
  9. c_abi_compatible_type_rs_api.rs
  10. c_abi_compatible_type_rs_api_impl.cc
  11. clang_attrs.h
  12. clang_attrs_rs_api.rs
  13. clang_attrs_rs_api_impl.cc
  14. comment.h
  15. comment_rs_api.rs
  16. comment_rs_api_impl.cc
  17. crubit_internal_rust_type.h
  18. crubit_internal_rust_type_rs_api.rs
  19. crubit_internal_rust_type_rs_api_impl.cc
  20. definition_of_forward_declaration.h
  21. definition_of_forward_declaration_rs_api.rs
  22. definition_of_forward_declaration_rs_api_impl.cc
  23. doc_comment.h
  24. doc_comment_rs_api.rs
  25. doc_comment_rs_api_impl.cc
  26. empty_rs_test.rs
  27. enums.h
  28. enums_rs_api.rs
  29. enums_rs_api_impl.cc
  30. escaping_keywords.h
  31. escaping_keywords_rs_api.rs
  32. escaping_keywords_rs_api_impl.cc
  33. forward_declaration.h
  34. forward_declaration_rs_api.rs
  35. forward_declaration_rs_api_impl.cc
  36. friend_functions.h
  37. friend_functions_rs_api.rs
  38. friend_functions_rs_api_impl.cc
  39. golden_test.bzl
  40. includes.h
  41. includes_rs_api.rs
  42. includes_rs_api_impl.cc
  43. inheritance.h
  44. inheritance_rs_api.rs
  45. inheritance_rs_api_impl.cc
  46. item_order.h
  47. item_order_rs_api.rs
  48. item_order_rs_api_impl.cc
  49. LICENSE_HEADER
  50. lifetimes.h
  51. lifetimes_rs_api.rs
  52. lifetimes_rs_api_impl.cc
  53. method_qualifiers.h
  54. method_qualifiers_rs_api.rs
  55. method_qualifiers_rs_api_impl.cc
  56. namespace.h
  57. namespace_rs_api.rs
  58. namespace_rs_api_impl.cc
  59. namespaces_json.h
  60. namespaces_json.json
  61. no_elided_lifetimes.h
  62. no_elided_lifetimes_rs_api.rs
  63. no_elided_lifetimes_rs_api_impl.cc
  64. no_unique_address.h
  65. no_unique_address_rs_api.rs
  66. no_unique_address_rs_api_impl.cc
  67. non_member_operator.h
  68. non_member_operator_rs_api.rs
  69. non_member_operator_rs_api_impl.cc
  70. nontrivial_type.h
  71. nontrivial_type_rs_api.rs
  72. nontrivial_type_rs_api_impl.cc
  73. operators.h
  74. operators_rs_api.rs
  75. operators_rs_api_impl.cc
  76. overloads.h
  77. overloads_rs_api.rs
  78. overloads_rs_api_impl.cc
  79. polymorphic.h
  80. polymorphic_rs_api.rs
  81. polymorphic_rs_api_impl.cc
  82. private_members.h
  83. private_members_rs_api.rs
  84. private_members_rs_api_impl.cc
  85. private_method.h
  86. private_method_rs_api.rs
  87. private_method_rs_api_impl.cc
  88. README.md
  89. static_methods.h
  90. static_methods_rs_api.rs
  91. static_methods_rs_api_impl.cc
  92. templates.h
  93. templates_rs_api.rs
  94. templates_rs_api_impl.cc
  95. templates_source_order.h
  96. templates_source_order_rs_api.rs
  97. templates_source_order_rs_api_impl.cc
  98. trivial_type.h
  99. trivial_type_rs_api.rs
  100. trivial_type_rs_api_impl.cc
  101. typedefs.h
  102. typedefs_rs_api.rs
  103. typedefs_rs_api_impl.cc
  104. types.h
  105. types_rs_api.rs
  106. types_rs_api_impl.cc
  107. unions.h
  108. unions_rs_api.rs
  109. unions_rs_api_impl.cc
  110. unsafe_attrs.h
  111. unsafe_attrs_rs_api.rs
  112. unsafe_attrs_rs_api_impl.cc
  113. unsupported.h
  114. unsupported_rs_api.rs
  115. unsupported_rs_api_impl.cc
  116. user_of_base_class.h
  117. user_of_base_class_rs_api.rs
  118. user_of_base_class_rs_api_impl.cc
  119. user_of_imported_type.h
  120. user_of_imported_type_rs_api.rs
  121. user_of_imported_type_rs_api_impl.cc
  122. user_of_unsupported.h
  123. user_of_unsupported_rs_api.rs
  124. 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, create two empty files named foo_rs_api.rs and foo_rs_api_impl.cc, and then executing cc_bindings_from_rs/test/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 cc_bindings_from_rs/test/golden/update.sh.