Class TestExecutionGroupOf

java.lang.Object
org.ek9lang.compiler.common.TestExecutionGroupOf
All Implemented Interfaces:
Function<ISymbol,String>

public final class TestExecutionGroupOf extends Object implements Function<ISymbol,String>
The sequential execution group a test belongs to (IsTestProgram has the encoding contract). Hold an instance.

Null for a non-test; empty for a test with no group, which is the ordinary case and means "runs in the parallel pool". Callers rewriting a directive must preserve this — dropping it moves a serialised test back into the parallel pool with no diagnostic anywhere.

  • Constructor Details

    • TestExecutionGroupOf

      public TestExecutionGroupOf()
  • Method Details

    • apply

      public String apply(ISymbol symbol)
      The group of the test.
      Specified by:
      apply in interface Function<ISymbol,String>
      Parameters:
      symbol - any symbol, or null
      Returns:
      the group name, "" when ungrouped, or null when this is not a test