Benign crates 550,237 installs Download

hegeltest-macros 0.28.8

“Procedural macros for Hegel.”

Package test directory memberPackage test-tree fixture member
SHA-256b21c727be5d17c6fb655bdd5a054772e0d4bc10834c6ac476bdffbcff138ff5f

Evidence

#[test] attribute hegel_main.rs · lines 53–61
53:15… attr,
54 "#[hegel::main] used on a function with #[test]. \
55 Remove the #[test] attribute.",
56 )
⋯5 lines
imports quote::quote utils.rs · lines 1–5
1use quote::quote;
2
3/// Convert a PascalCase string to snake_case.
4///
5/// Inserts underscores at word boundaries …
imports super::is_valid_method_name utils.rs · lines 183–198
⋯4 lines
187}
188
189#[cfg(test)]
190mod tests {
191 use super::{is_valid_method_name, pascal_to_snake};
192
193 #[test]
194 fn test_is_valid_method_name() {
195 assert!(!is_valid_method_name("type"));
196 assert!(!is_valid_method_name("super"));
197
198 asser …
#[cfg(test)] attribute common.rs · lines 446–454
⋯4 lines
450}
451
452#[cfg(test)]
453#[path = "../tests/embedded/common_tests.rs"]
454mod tests;
References the Tokio async runtime namespace hegel_test.rs · lines 78–85
78:16… hegel::test] does not support bare interactions with async functions. \
79 Put #[hegel::test] below an async test macro like #[tokio::test] instead.",
80 )
81 .to_compile_error();
⋯4 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.