(layers: Vec<&str>)
| 239 | use std::fs; |
| 240 | |
| 241 | fn make_node(layers: Vec<&str>) -> Node { |
| 242 | Node { |
| 243 | host: "test:10128".to_string(), |
| 244 | description: None, |
| 245 | layers: layers.into_iter().map(|s| s.to_string()).collect(), |
| 246 | vram_bytes: 0, |
| 247 | tflops: 0.0, |
| 248 | backend: String::new(), |
| 249 | hostname: String::new(), |
| 250 | os: String::new(), |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | #[test] |
| 255 | fn load_index_from_json_file() { |
no outgoing calls