private void executeEOFTest(final String fileName, final Map<String, EOFTestCaseSpec> eofTests) {
    List<TestExecutionResult> results = new ArrayList<>();

    for (var testGroup : eofTests.entrySet()) {
      String groupName = testGroup.getKey();
      for (var testVector : testGroup.getValue().getVector().entrySet()) {
        String testName = testVector.getKey();
        if (testVectorName != null && !testVectorName.equals(testName)) {
          continue;
        }
        String code = testVector.getValue().code();
        for (var testResult : testVector.getValue().results().entrySet()) {
          String expectedForkName = testResult.getKey();
          if (fork != null && !fork.equals(expectedForkName)) {
            System.out.println("Wrong fork - " + fork + " != " + expectedForkName);
            continue;
          }
          TestResult expectedResult = testResult.getValue();
          EvmSpecVersion evmVersion = EvmSpecVersion.fromName(expectedForkName);
          if (evmVersion == null) {
            results.add(
                new TestExecutionResult(
                    fileName,
                    groupName,
                    testName,
                    expectedForkName,
                    false,
                    "Valid fork name",
                    "Unknown fork: " + expectedForkName));

            continue;
          }
          TestResult actualResult;
          if (evmVersion.ordinal() < EvmSpecVersion.FUTURE_EIPS.ordinal()) {
            actualResult = failed("EOF_InvalidCode");
          } else {
            actualResult = considerCode(code);
          }
          results.add(
              new TestExecutionResult(
                  fileName,
                  groupName,
                  testName,
                  expectedForkName,
                  actualResult.result() == expectedResult.result(),
                  expectedResult.exception(),
                  actualResult.exception()));
        }
      }
    }
    for (TestExecutionResult result : results) {
      try {
        parentCommand.out.println(JsonUtils.createObjectMapper().writeValueAsString(result));
      } catch (JsonProcessingException e) {
        e.printStackTrace(parentCommand.out);
        throw new RuntimeException(e);
      }
    }
  }
Constructor for the EOFTestSubCommand class with a parent command.

@param parentCommand The parent command for this sub command.
ethereum/evmtool/src/main/java/org/hyperledger/besu/evmtool/EOFTestSubCommand.java