3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-27 13:45:52 +00:00

add some more tests

This commit is contained in:
Arpad Borsos 2022-07-09 17:17:14 +02:00
parent 86bae2494f
commit fffd6895b2
No known key found for this signature in database
GPG key ID: FC7BCA77824B3298
12 changed files with 185 additions and 1057 deletions

979
tests/Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -3,9 +3,8 @@ publish = false
name = "rust-cache"
version = "0.1.0"
authors = ["Arpad Borsos <arpad.borsos@googlemail.com>"]
edition = "2018"
edition = "2021"
[dev-dependencies]
[dependencies]
reqwest = "0.11.0"
clap = "3"
actix-web = { git = "https://github.com/actix/actix-web.git", rev = "bd26083f333ecf63e3eb444748250364ce124f5e" }
proguard = { git = "https://github.com/getsentry/rust-proguard", rev = "4bc2cddd79cc8f7c9d14dda2f9f4c431e10c9424" }

View file

@ -1,3 +1,17 @@
fn main() {
println!("Hello, world!");
}
fn some_fn(input: bool) -> usize {
if input {
2 + 4
} else {
3.saturating_add(5)
}
}
#[test]
fn some_test() {
assert_eq!(some_fn(true), 6);
assert_eq!(some_fn(false), 8);
}

View file

@ -631,9 +631,9 @@ checksum = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1"
[[package]]
name = "openssl"
version = "0.10.40"
version = "0.10.41"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb81a6430ac911acb25fe5ac8f1d2af1b4ea8a4fdfda0f1ee4292af2e2d8eb0e"
checksum = "618febf65336490dfcf20b73f885f5651a0c89c64c2d4a8c3662585a70bf5bd0"
dependencies = [
"bitflags",
"cfg-if",
@ -663,9 +663,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
[[package]]
name = "openssl-sys"
version = "0.9.74"
version = "0.9.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "835363342df5fba8354c5b453325b110ffd54044e588c539cf2f20a8014e4cb1"
checksum = "e5f9bd0c2710541a3cda73d6f9ac4f1b240de4ae261065d309dbe73d9dceb42f"
dependencies = [
"autocfg",
"cc",

View file

@ -1,9 +1,8 @@
[package]
publish = false
name = "wasm-one"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
edition = "2021"
[dependencies]
reqwest = "0.11.0"

View file

@ -1,9 +1,8 @@
[package]
publish = false
name = "wasm-two"
version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
edition = "2021"
[dependencies]
clap = "3"