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