diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-02-27 20:25:05 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-02-27 22:31:21 +0800 |
| commit | 932050d82212ee7db6bd4cb746fb79f40aa7cbf9 (patch) | |
| tree | c4c868ead7191510d5a23c998658ba319dc3cdb7 /src/test_expect.txt | |
Initialize project with Cargo.toml and basic structure
Diffstat (limited to 'src/test_expect.txt')
| -rw-r--r-- | src/test_expect.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test_expect.txt b/src/test_expect.txt new file mode 100644 index 0000000..c967707 --- /dev/null +++ b/src/test_expect.txt @@ -0,0 +1,14 @@ +// Auto generated +use std::collections::HashMap; + +pub async fn my_func( + name: &str, + data: &[u8], + params: &HashMap<String, String>, +) -> Option<Result<Vec<u32>, std::io::Error>> { + match name { + "my" => Some(my::exec(data, params).await), + "you" => Some(you::exec(data, params).await), + _ => None, + } +} |
