Test case 1
1: RawStreamSequence rawStreamSequence0 = new RawStreamSequence("SoftMaskedAlphabets cannot remove Symbols");
2: Bases bases0 = new Bases(rawStreamSequence0);
3: Strand strand0 = bases0.getForwardStrand();
4: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
5: entropyAlgorithm0.getAverage();
Test case 2
1: GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("");
2: Bases bases0 = new Bases(genbankStreamSequence0);
3: Strand strand0 = bases0.getForwardStrand();
4: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
5: int int0 = entropyAlgorithm0.getValueCount();
6: assertTrue(entropyAlgorithm0.scalingFlag());
7: assertEquals("Informational Entropy", entropyAlgorithm0.getAlgorithmName());
8: assertEquals(1, int0);
Test case 3
1: RawStreamSequence rawStreamSequence0 = new RawStreamSequence("SoftMaskedAlphabets cannot remove Symbols");
2: Bases bases0 = new Bases(rawStreamSequence0);
3: Strand strand0 = bases0.getForwardStrand();
4: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
5: Float float0 = entropyAlgorithm0.getMaximumInternal();
6: assertTrue(entropyAlgorithm0.scalingFlag());
7: assertEquals("Informational Entropy", entropyAlgorithm0.getAlgorithmName());
8: assertEquals(100.0F, (float)float0, 0.01F);
Test case 4
1: GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("");
2: Bases bases0 = new Bases(genbankStreamSequence0);
3: Strand strand0 = bases0.getForwardStrand();
4: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
5: Float float0 = entropyAlgorithm0.getMinimumInternal();
6: assertEquals("Informational Entropy", entropyAlgorithm0.getAlgorithmName());
7: assertEquals(0.0F, (float)float0, 0.01F);
8: assertTrue(entropyAlgorithm0.scalingFlag());
Test case 5
1: GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("");
2: Bases bases0 = new Bases(genbankStreamSequence0);
3: Strand strand0 = bases0.getReverseStrand();
4: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
5: float[] floatArray0 = new float[8];
6: entropyAlgorithm0.getValues(1327, 0, floatArray0);
Test case 6
1: RawStreamSequence rawStreamSequence0 = new RawStreamSequence("SoftMaskedAlphabets cannot remove Symbols");
2: Bases bases0 = new Bases(rawStreamSequence0);
3: Strand strand0 = bases0.getForwardStrand();
4: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
5: float[] floatArray0 = new float[8];
6: entropyAlgorithm0.getValues(5, 4037, floatArray0);
Test case 7
1: Short short0 = new Short((short)774);
2: Integer integer0 = JLayeredPane.MODAL_LAYER;
3: PartialSequence partialSequence0 = new PartialSequence((char[]) null, 1, 1024, short0, integer0);
4: Bases bases0 = new Bases(partialSequence0);
5: Strand strand0 = bases0.getReverseStrand();
6: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
7: float[] floatArray0 = new float[1];
8: entropyAlgorithm0.getValues(2, 2, floatArray0);
9: assertEquals("Reverse Informational Entropy", entropyAlgorithm0.getAlgorithmName());
10: assertTrue(entropyAlgorithm0.scalingFlag());
Test case 8
1: GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("");
2: Bases bases0 = new Bases(genbankStreamSequence0);
3: Strand strand0 = bases0.getForwardStrand();
4: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
5: Integer integer0 = entropyAlgorithm0.getDefaultWindowSize();
6: assertTrue(entropyAlgorithm0.scalingFlag());
7: assertEquals("Informational Entropy", entropyAlgorithm0.getAlgorithmName());
8: assertEquals(500, (int)integer0);
9: assertNotNull(integer0);
Test case 9
1: GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("");
2: Bases bases0 = new Bases(genbankStreamSequence0);
3: Strand strand0 = bases0.getForwardStrand();
4: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
5: Integer integer0 = entropyAlgorithm0.getDefaultMaxWindowSize();
6: assertTrue(entropyAlgorithm0.scalingFlag());
7: assertEquals("Informational Entropy", entropyAlgorithm0.getAlgorithmName());
8: assertNotNull(integer0);
9: assertEquals(5000, (int)integer0);
Test case 10
1: RawStreamSequence rawStreamSequence0 = new RawStreamSequence("SoftMaskedAlphabets cannot remove Symbols");
2: Bases bases0 = new Bases(rawStreamSequence0);
3: Strand strand0 = bases0.getForwardStrand();
4: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
5: Integer integer0 = entropyAlgorithm0.getDefaultMinWindowSize();
6: assertNotNull(integer0);
7: assertEquals(25, (int)integer0);
8: assertEquals("Informational Entropy", entropyAlgorithm0.getAlgorithmName());
9: assertTrue(entropyAlgorithm0.scalingFlag());
Test case 11
1: GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("");
2: Bases bases0 = new Bases(genbankStreamSequence0);
3: Strand strand0 = bases0.getForwardStrand();
4: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
5: Integer integer0 = entropyAlgorithm0.getDefaultStepSize((-1880));
6: assertEquals("Informational Entropy", entropyAlgorithm0.getAlgorithmName());
7: assertTrue(entropyAlgorithm0.scalingFlag());
8: assertNull(integer0);
Test case 12
1: Bases bases0 = new Bases((Sequence) null);
2: Strand strand0 = bases0.getReverseStrand();
3: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
4: Integer integer0 = entropyAlgorithm0.getDefaultStepSize(500);
5: assertNotNull(integer0);
6: assertEquals(50, (int)integer0);
7: assertEquals("Reverse Informational Entropy", entropyAlgorithm0.getAlgorithmName());
8: assertTrue(entropyAlgorithm0.scalingFlag());
Test case 13
1: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm((Strand) null);
Test case 14
1: Bases bases0 = new Bases((Sequence) null);
2: Strand strand0 = bases0.getForwardStrand();
3: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
4: entropyAlgorithm0.getAverage();
Test case 15
1: Bases bases0 = new Bases((Sequence) null);
2: Strand strand0 = bases0.getReverseStrand();
3: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
4: float[] floatArray0 = new float[4];
5: entropyAlgorithm0.getValues(0, 126, floatArray0);
Test case 16
1: GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("");
2: Bases bases0 = new Bases(genbankStreamSequence0);
3: Strand strand0 = bases0.getForwardStrand();
4: EntropyAlgorithm entropyAlgorithm0 = new EntropyAlgorithm(strand0);
5: entropyAlgorithm0.getAverage();
6: assertEquals("Informational Entropy", entropyAlgorithm0.getAlgorithmName());
7: assertTrue(entropyAlgorithm0.scalingFlag());
Source Code
1: No source found for uk.ac.sanger.artemis.plot.EntropyAlgorithm
EvoSuite Parameters
- TARGET_CLASS: uk.ac.sanger.artemis.plot.EntropyAlgorithm
- Size: 16
- Length: 79
- criterion: LINE;BRANCH;EXCEPTION;WEAKMUTATION;OUTPUT;METHOD;METHODNOEXCEPTION;CBRANCH
- Coverage: 0.871749104439671
- BranchCoverage: 0.8695652173913043
- MethodCoverage: 1.0
- OutputCoverage: 0.3716216216216216
Back to Overview