This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Rashad Alston <[email protected]>
- Loading branch information
Showing
13 changed files
with
126 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-85 Bytes
(100%)
packages/fuel-indexer-tests/indexers/simple-wasm/simple_wasm.wasm
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
#[cfg(feature = "postgres")] | ||
#[cfg(all(feature = "postgres", not(feature = "trybuild")))] | ||
mod graphql_server; | ||
|
||
#[cfg(feature = "postgres")] | ||
#[cfg(all(feature = "postgres", not(feature = "trybuild")))] | ||
mod indexing; | ||
|
||
#[cfg(not(feature = "trybuild"))] | ||
mod service; | ||
|
||
#[cfg(feature = "postgres")] | ||
#[cfg(all(feature = "postgres", not(feature = "trybuild")))] | ||
mod web_server; | ||
|
||
#[cfg(feature = "trybuild")] | ||
mod trybuild; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#[cfg(feature = "trybuild")] | ||
#[test] | ||
fn test_success_and_failure_macros() { | ||
let t = trybuild::TestCases::new(); | ||
let manifest_dir = env!("CARGO_MANIFEST_DIR"); | ||
|
||
std::env::set_var("COMPILE_TEST_PREFIX", manifest_dir); | ||
|
||
let macro_data_root = std::path::Path::new(manifest_dir) | ||
.join("..") | ||
.join("fuel-indexer-tests") | ||
.join("trybuild"); | ||
|
||
t.compile_fail(macro_data_root.join("fail_if_attribute_args_include_self.rs")); | ||
t.compile_fail(macro_data_root.join("fail_if_attribute_args_not_included.rs")); | ||
t.pass(macro_data_root.join("pass_if_indexer_is_valid_single_type.rs")); | ||
t.pass(macro_data_root.join("pass_if_indexer_is_valid_multi_type.rs")); | ||
t.compile_fail(macro_data_root.join("fail_if_attribute_schema_arg_is_invalid.rs")); | ||
t.compile_fail( | ||
macro_data_root.join("fail_if_attribute_abi_arg_includes_invalid_type.rs"), | ||
); | ||
t.compile_fail(macro_data_root.join("fail_if_indexer_module_is_empty.rs")); | ||
} |
Oops, something went wrong.