Skip to content

Commit 4b504b2

Browse files
authored
Generate unit test line by line (for --inplace) (rust-lang#2213)
1 parent 61c433a commit 4b504b2

File tree

4 files changed

+262
-85
lines changed

4 files changed

+262
-85
lines changed

Cargo.lock

+37
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ dependencies = [
534534
"kani_metadata",
535535
"once_cell",
536536
"pathdiff",
537+
"rand",
537538
"rayon",
538539
"regex",
539540
"rustc-demangle",
@@ -849,6 +850,12 @@ version = "0.2.9"
849850
source = "registry+https://github.com/rust-lang/crates.io-index"
850851
checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116"
851852

853+
[[package]]
854+
name = "ppv-lite86"
855+
version = "0.2.17"
856+
source = "registry+https://github.com/rust-lang/crates.io-index"
857+
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
858+
852859
[[package]]
853860
name = "proc-macro-error"
854861
version = "1.0.4"
@@ -902,6 +909,36 @@ dependencies = [
902909
"proc-macro2",
903910
]
904911

912+
[[package]]
913+
name = "rand"
914+
version = "0.8.5"
915+
source = "registry+https://github.com/rust-lang/crates.io-index"
916+
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
917+
dependencies = [
918+
"libc",
919+
"rand_chacha",
920+
"rand_core",
921+
]
922+
923+
[[package]]
924+
name = "rand_chacha"
925+
version = "0.3.1"
926+
source = "registry+https://github.com/rust-lang/crates.io-index"
927+
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
928+
dependencies = [
929+
"ppv-lite86",
930+
"rand_core",
931+
]
932+
933+
[[package]]
934+
name = "rand_core"
935+
version = "0.6.4"
936+
source = "registry+https://github.com/rust-lang/crates.io-index"
937+
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
938+
dependencies = [
939+
"getrandom",
940+
]
941+
905942
[[package]]
906943
name = "rayon"
907944
version = "1.6.1"

kani-driver/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ strum_macros = {version = "0.24.0"}
3737
tracing = {version = "0.1", features = ["max_level_trace", "release_max_level_debug"]}
3838
tracing-subscriber = {version = "0.3.8", features = ["env-filter", "json", "fmt"]}
3939
tracing-tree = "0.2.2"
40+
rand = "0.8"
4041
which = "4.4.0"
4142

4243
# A good set of suggested dependencies can be found in rustup:

0 commit comments

Comments
 (0)