Skip to content

Commit 763a628

Browse files
author
Bennett Hardwick
committed
Add pass
1 parent b340495 commit 763a628

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

tests/compile_tests.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ fn ui_tests() {
77
t.compile_fail("tests/ui/compound-index-too-many-fields.rs");
88
t.compile_fail("tests/ui/index-unsupported.rs");
99
t.compile_fail("tests/ui/compound-index-unsupported.rs");
10+
11+
t.pass("tests/ui/pass.rs");
1012
}

tests/query_tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use cryptonamo::{traits::DecryptedRecord, Cryptonamo, EncryptedTable, Plaintext}
22
use serial_test::serial;
33
use std::{collections::HashMap, future::Future};
44

5-
65
#[derive(Debug, PartialEq, Cryptonamo)]
76
#[cryptonamo(partition_key = "email")]
87
#[cryptonamo(sort_key_prefix = "user")]

tests/ui/pass.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
use cryptonamo::Cryptonamo;
2+
3+
#[derive(Debug, Cryptonamo)]
4+
#[cryptonamo(partition_key = "email")]
5+
struct User {
6+
#[cryptonamo(query = "exact", compound = "email#name")]
7+
email: String,
8+
#[cryptonamo(query = "prefix", compound = "email#name")]
9+
name: String,
10+
}
11+
12+
fn main() {}

0 commit comments

Comments
 (0)