Class ExpectedTestExitCodeOf

java.lang.Object
org.ek9lang.compiler.common.ExpectedTestExitCodeOf
All Implemented Interfaces:
ToIntFunction<ISymbol>

public final class ExpectedTestExitCodeOf extends Object implements ToIntFunction<ISymbol>
The exit code a test program must end with for the test to pass: the one it declared with "EXIT:<n>" (DeclaredTestExitCodeOf), else 0. Hold an instance.
  • Constructor Details

    • ExpectedTestExitCodeOf

      public ExpectedTestExitCodeOf()
  • Method Details

    • applyAsInt

      public int applyAsInt(ISymbol symbol)
      The expected exit code.
      Specified by:
      applyAsInt in interface ToIntFunction<ISymbol>
      Parameters:
      symbol - any symbol, or null
      Returns:
      the expected exit code, 0 when none was declared