MCPcopy Index your code
hub / github.com/douchuan/algorithm / gen_vec_data

Function gen_vec_data

tests/test_sort.rs:94–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92// utils
93
94fn gen_vec_data() -> Vec<Vec<i32>> {
95 let sorted: Vec<i32> = (1..100).collect();
96 let mut unsorted = sorted.clone();
97 common::util::shuffle(&mut unsorted);
98
99 vec![
100 //empty
101 vec![],
102 //only 1
103 vec![1],
104 sorted,
105 unsorted,
106 ]
107}

Callers 2

tournament_treeFunction · 0.85
mergeFunction · 0.85

Calls 2

shuffleFunction · 0.85
cloneMethod · 0.80

Tested by

no test coverage detected