pub struct TddWorkflow { /* private fields */ }Expand description
TDD workflow manager
Implementations§
Source§impl TddWorkflow
impl TddWorkflow
pub fn new(framework: &str) -> TddWorkflow
Sourcepub fn start_cycle(&mut self, test_name: &str) -> TddResult
pub fn start_cycle(&mut self, test_name: &str) -> TddResult
Start TDD cycle
Sourcepub fn start_refactor(&mut self) -> TddResult
pub fn start_refactor(&mut self) -> TddResult
Move to refactor phase
Sourcepub fn complete_cycle(&mut self) -> TddResult
pub fn complete_cycle(&mut self) -> TddResult
Complete cycle
Sourcepub fn generate_test(&self, name: &str, params: usize) -> String
pub fn generate_test(&self, name: &str, params: usize) -> String
Generate test for function
Sourcepub fn analyze_for_refactoring(
&self,
ast: &Node,
source: &str,
) -> Vec<RefactoringSuggestion>
pub fn analyze_for_refactoring( &self, ast: &Node, source: &str, ) -> Vec<RefactoringSuggestion>
Analyze code for refactoring
Sourcepub fn get_coverage_diagnostics(
&self,
uncovered_lines: &[usize],
) -> Vec<Diagnostic>
pub fn get_coverage_diagnostics( &self, uncovered_lines: &[usize], ) -> Vec<Diagnostic>
Get coverage diagnostics
Auto Trait Implementations§
impl Freeze for TddWorkflow
impl RefUnwindSafe for TddWorkflow
impl Send for TddWorkflow
impl Sync for TddWorkflow
impl Unpin for TddWorkflow
impl UnsafeUnpin for TddWorkflow
impl UnwindSafe for TddWorkflow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more