org.ddolibscala.util.testbench

Members list

Type members

Classlikes

case class GeneratedTest(name: String, executeTest: () => Unit)

Represents a single test case generated by the bench.

Represents a single test case generated by the bench.

Value parameters

executeTest

the executable code of the test.

name

the descriptive name of the test.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ProblemLoader

Utility object designed to facilitate the loading of problem instances from the file system.

Utility object designed to facilitate the loading of problem instances from the file system.

This helper abstracts away the logic of listing files in a directory and handling I/O resources safely.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class ProblemTestBench[S, P <: Problem[S]](problems: List[P], configFactory: P => TestModel[S])

A standalone generator of test cases for org.ddolibscala.modeling.Problem implementations.

A standalone generator of test cases for org.ddolibscala.modeling.Problem implementations.

Instead of being a test suite itself, it generates a list of executable GeneratedTest objects that can be run by any test framework.

Type parameters

P

the type of the problem implementation.

S

the type of the state in the problem.

Value parameters

configFactory

a function providing the solver configuration for a given problem.

problems

the list of problem instances to test.

Attributes

Supertypes
class Object
trait Matchable
class Any
trait TestModel[S]

Defines the model configuration and components used to solve a problem instance during tests.

Defines the model configuration and components used to solve a problem instance during tests.

This trait acts as a container for the specific strategies (Lower Bound, Relaxation, Ranking, Dominance) required to solve a problem. It corresponds to the specific configuration needed to instantiate the solver for a given test case.

Type parameters

S

the type of the state in the problem

Attributes

Supertypes
class Object
trait Matchable
class Any