pub struct CaseGroup<T, G, P> { /* private fields */ }
Expand description

A easy to use test case collection struct that also provide functions for simple test case creation.

Implementations§

Create a new CaseGroup instance.

Add existing test case instance to the collection.

Note: an additional index value will be set by calling this method.

Get all test cases within current test case collection.

Implement two handy methods on CaseGroup<String, G, P> struct.

Create a new test case (no input parameters) matching &str and other generic types.

Argument
  • ipt - this argument is set to &str to simplify method calls.
  • exp - expected values in Vec<G> form.

Create a new test case (with input parameters) matching &str and other generic types.

Argument
  • ipt - this argument is set to &str to simplify method calls.
  • exp - expected values in Vec<G> form.
  • params - expected values in Vec<P> form.

Create a new test case (no input parameters but multiple inputs) matching &str and other generic types.

Argument
  • ipts - this argument is set to &str to simplify method calls.
  • exp - expected values in Vec<G> form.

Create a new test case (with input parameters and multiple inputs) matching &str and other generic types.

Argument
  • ipts - this argument is set to &str to simplify method calls.
  • exp - expected values in Vec<G> form.
  • params - expected values in Vec<P> form.

Implement two handy methods on CaseGroup struct.

Create a new test case (no input parameters) matching selected generic types.

Create a new test case (with input parameters) matching selected generic types.

Create a new test case (no input parameters but multi-inputs) matching selected generic types.

Create a new test case (with input parameters and multi-inputs) matching selected generic types.

Implement two handy methods on CaseGroup struct.

Create a new test case (no input parameters) matching selected generic types.

Create a new test case (with input parameters) matching selected generic types.

Create a new test case (no input parameters but multi-inputs) matching selected generic types.

Create a new test case (with input parameters and multi-inputs) matching selected generic types.

Implement two handy methods on CaseGroup struct.

Create a new test case (no input parameters) matching selected generic types.

Create a new test case (with input parameters) matching selected generic types.

Create a new test case (no input parameters but multi-inputs) matching selected generic types.

Create a new test case (with input parameters and multi-inputs) matching selected generic types.

Implement two handy methods on CaseGroup struct.

Create a new test case (no input parameters) matching selected generic types.

Create a new test case (with input parameters) matching selected generic types.

Create a new test case (no input parameters but multi-inputs) matching selected generic types.

Create a new test case (with input parameters and multi-inputs) matching selected generic types.

Implement two handy methods on CaseGroup struct.

Create a new test case (no input parameters) matching selected generic types.

Create a new test case (with input parameters) matching selected generic types.

Create a new test case (no input parameters but multi-inputs) matching selected generic types.

Create a new test case (with input parameters and multi-inputs) matching selected generic types.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.