Skip to content

Commit

Permalink
[SYSTEMDS-3672] GIO Test Cases false positive (#1999)
Browse files Browse the repository at this point in the history
  • Loading branch information
fathollahzadeh committed Feb 24, 2024
1 parent 03ccaee commit 4742a85
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 25 deletions.
Expand Up @@ -23,7 +23,7 @@

public class FrameGenerateReaderCustomTest extends GenerateReaderFrameTest {

private final static String TEST_NAME = "FrameGenerateReaderCSVTest";
private final static String TEST_NAME = "FrameGenerateReaderCustomTest";

@Override
protected String getTestName() {
Expand Down
Expand Up @@ -23,7 +23,7 @@

public class FrameGenerateReaderXMLTest extends GenerateReaderFrameTest {

private final static String TEST_NAME = "FrameGenerateReaderJSONTest";
private final static String TEST_NAME = "FrameGenerateReaderXMLTest";

@Override
protected String getTestName() {
Expand Down
Expand Up @@ -71,12 +71,9 @@ protected void runGenerateReaderTest(String sampleRawFileName, String sampleFram
parallel);
FrameReader fr = gr.getReader();
fr.readFrameFromHDFS(dataFileName, sampleSchema, rows, sampleSchema.length);

// TODO Verify the frameblock contains the correct values.

}
catch(Exception exception) {
exception.printStackTrace();
throw new RuntimeException(exception);
}
finally {
rtplatform = oldPlatform;
Expand Down
Expand Up @@ -33,9 +33,6 @@ public abstract class GenerateReaderMatrixTest extends AutomatedTestBase {

protected final static String TEST_DIR = "functions/iogen/";
protected final static String TEST_CLASS_DIR = TEST_DIR + GenerateReaderMatrixTest.class.getSimpleName() + "/";
protected String sampleRaw;
protected double[][] sampleMatrix;

protected abstract String getTestName();

@Override
Expand All @@ -44,20 +41,6 @@ public void setUp() {
addTestConfiguration(getTestName(), new TestConfiguration(TEST_DIR, getTestName(), new String[] {"Y"}));
}

protected void generateRandomSymmetric(int size, double min, double max, double sparsity, boolean isSkew) {
sampleMatrix = getRandomMatrix(size, size, min, max, sparsity, 714);
int conf = isSkew ? -1 : 1;
for(int i = 0; i < size; i++) {
for(int j = 0; j <= i; j++) {

if(i != j)
sampleMatrix[i][j] = sampleMatrix[j][i] * conf;
else
sampleMatrix[i][j] = 0;
}
}
}

@SuppressWarnings("unused")
protected void runGenerateReaderTest(String sampleRawFileName, String sampleMatrixFileName, boolean parallel) {

Expand Down Expand Up @@ -90,7 +73,7 @@ protected void runGenerateReaderTest(String sampleRawFileName, String sampleMatr

}
catch(Exception exception) {
exception.printStackTrace();
throw new RuntimeException(exception);
}
finally {
rtplatform = oldPlatform;
Expand Down
Expand Up @@ -23,7 +23,7 @@

public class MatrixGenerateReaderMMTest extends GenerateReaderMatrixTest {

private final static String TEST_NAME = "FrameGenerateReaderLibSVMTest";
private final static String TEST_NAME = "MatrixGenerateReaderMMTest";

@Override
protected String getTestName() {
Expand Down

0 comments on commit 4742a85

Please sign in to comment.