Skip to content

Commit 615833c

Browse files
authored
Add validation tests for blocked bills, accept, req to accept, req to (#469)
1 parent 761fc3d commit 615833c

File tree

9 files changed

+300
-17
lines changed

9 files changed

+300
-17
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.3.5
2+
3+
* Add in-depth tests for bill validation
4+
15
# 0.3.4
26

37
* Add in-depth tests for bill validation

crates/bcr-ebill-api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bcr-ebill-api"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
edition = "2024"
55

66
[lib]

crates/bcr-ebill-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bcr-ebill-core"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
edition = "2024"
55

66
[lib]

crates/bcr-ebill-core/src/bill/validation.rs

Lines changed: 279 additions & 11 deletions
Large diffs are not rendered by default.

crates/bcr-ebill-core/src/tests/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,17 @@ pub mod tests {
122122
}
123123
}
124124

125+
pub fn valid_other_identity_public_data() -> IdentityPublicData {
126+
IdentityPublicData {
127+
t: ContactType::Person,
128+
node_id: OTHER_TEST_PUB_KEY_SECP.into(),
129+
name: "John Smith".into(),
130+
postal_address: valid_address(),
131+
email: None,
132+
nostr_relay: None,
133+
}
134+
}
135+
125136
pub fn empty_identity_public_data() -> IdentityPublicData {
126137
IdentityPublicData {
127138
t: ContactType::Person,

crates/bcr-ebill-persistence/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bcr-ebill-persistence"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
edition = "2024"
55

66
[lib]

crates/bcr-ebill-transport/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bcr-ebill-transport"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
edition = "2024"
55

66
[lib]

crates/bcr-ebill-wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bcr-ebill-wasm"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
edition = "2024"
55

66
[lib]

crates/bcr-ebill-web/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bcr-ebill-web"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
edition = "2024"
55

66
[dependencies]

0 commit comments

Comments
 (0)