Skip to content

Commit

Permalink
WIP get test_benchmarking to work
Browse files Browse the repository at this point in the history
  • Loading branch information
seddonym committed Dec 10, 2024
1 parent efb3f18 commit a2f11b4
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 1,279 deletions.
13 changes: 0 additions & 13 deletions rust/src/dependencies.rs

This file was deleted.

29 changes: 6 additions & 23 deletions rust/src/graph.rs
Original file line number Diff line number Diff line change
@@ -1,25 +1,4 @@
/*
modules (get_modules) DONE
find_children - DONE
find_descendants - DONE
direct_import_exists - DONE
find_modules_directly_imported_by - DONE
find_modules_that_directly_import - DONE
get_import_details - DONE
count_imports - DONE
find_upstream_modules - DONE
find_downstream_modules - DONE
find_shortest_chain - DONE
find_shortest_chains - TODO
chain_exists - DONE
find_illegal_dependencies_for_layers - DONE
add_module - DONE
remove_module - DONE
add_import - DONE
remove_import - DONE
squash_module - DONE
is_module_squashed - DONE
Also, sensible behaviour when passing modules that don't exist in the graph.
*/
#![allow(dead_code)]
Expand All @@ -35,7 +14,12 @@ use std::collections::{HashMap, HashSet};
use std::fmt;
use std::time::Instant;

use crate::layers::Level;
/// A group of layers at the same level in the layering.
#[derive(PartialEq, Eq, Hash, Debug)]
pub struct Level {
pub layers: Vec<String>,
pub independent: bool,
}

// Delimiter for Python modules.
const DELIMITER: char = '.';
Expand Down Expand Up @@ -1059,7 +1043,6 @@ impl Graph {
#[cfg(test)]
mod tests {
use super::*;
use crate::layers::Level;

#[test]
fn modules_when_empty() {
Expand Down
Loading

0 comments on commit a2f11b4

Please sign in to comment.