hegeltest-macros 0.28.8
“Procedural macros for Hegel.”
Package test directory memberPackage test-tree fixture member
SHA-256b21c727be5d17c6fb655bdd5a054772e0d4bc10834c6ac476bdffbcff138ff5f
MaleculeO₂(AsS)Md(Pa)
Evidence
53:15… attr,
54 "#[hegel::main] used on a function with #[test]. \
55 Remove the #[test] attribute.",
56 )
⋯5 lines
1use quote::quote;
2
3/// Convert a PascalCase string to snake_case.
4///
5/// Inserts underscores at word boundaries …
⋯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 …
⋯4 lines
450}
451
452#[cfg(test)]
453#[path = "../tests/embedded/common_tests.rs"]
454mod tests;
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