Summary

Test suite

Test case 1

  1: EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("FeatureCvTermProp = ");
  2: Bases bases0 = new Bases(emblStreamSequence0);
  3: Strand strand0 = bases0.getReverseStrand();
  4: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  5: gCWindowAlgorithm0.getMaximumInternal();

Test case 2

  1: EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("FeatureCvTermProp = ");
  2: Bases bases0 = new Bases(emblStreamSequence0);
  3: Strand strand0 = bases0.getReverseStrand();
  4: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  5: gCWindowAlgorithm0.getAverage();
  6: assertTrue(gCWindowAlgorithm0.scalingFlag());

Test case 3

  1: Bases bases0 = new Bases((Sequence) null);
  2: Strand strand0 = bases0.getForwardStrand();
  3: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  4: Float float0 = gCWindowAlgorithm0.getMinimumInternal();
  5: assertTrue(gCWindowAlgorithm0.scalingFlag());
  6: assertEquals(0.0F, (float)float0, 0.01F);

Test case 4

  1: GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("B?");
  2: Bases bases0 = new Bases(genbankStreamSequence0);
  3: Strand strand0 = bases0.getReverseStrand();
  4: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  5: int int0 = gCWindowAlgorithm0.getValueCount();
  6: assertEquals(1, int0);
  7: assertTrue(gCWindowAlgorithm0.scalingFlag());

Test case 5

  1: EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("FeatureCvTermProp = ");
  2: Bases bases0 = new Bases(emblStreamSequence0);
  3: Strand strand0 = bases0.getReverseStrand();
  4: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  5: float[] floatArray0 = new float[7];
  6: emblStreamSequence0.setFromChar(bases0.letter_index);
  7: gCWindowAlgorithm0.getValues(0, 2, floatArray0);
  8: assertArrayEquals(new float[] {33.333336F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F}, floatArray0, 0.01F);
  9: assertTrue(gCWindowAlgorithm0.scalingFlag());

Test case 6

  1: Bases bases0 = new Bases((Sequence) null);
  2: Strand strand0 = bases0.getForwardStrand();
  3: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  4: Integer integer0 = gCWindowAlgorithm0.getDefaultWindowSize();
  5: assertNotNull(integer0);
  6: assertTrue(gCWindowAlgorithm0.scalingFlag());
  7: assertEquals(120, (int)integer0);

Test case 7

  1: Bases bases0 = new Bases((Sequence) null);
  2: Strand strand0 = bases0.getReverseStrand();
  3: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  4: Integer integer0 = gCWindowAlgorithm0.getDefaultMaxWindowSize();
  5: assertTrue(gCWindowAlgorithm0.scalingFlag());
  6: assertNotNull(integer0);
  7: assertEquals(500, (int)integer0);

Test case 8

  1: GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("B?");
  2: Bases bases0 = new Bases(genbankStreamSequence0);
  3: Strand strand0 = bases0.getReverseStrand();
  4: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  5: Integer integer0 = gCWindowAlgorithm0.getDefaultMinWindowSize();
  6: assertTrue(gCWindowAlgorithm0.scalingFlag());
  7: assertNotNull(integer0);
  8: assertEquals(24, (int)integer0);

Test case 9

  1: GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("B?");
  2: Bases bases0 = new Bases(genbankStreamSequence0);
  3: Strand strand0 = bases0.getReverseStrand();
  4: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  5: Integer integer0 = gCWindowAlgorithm0.getDefaultStepSize(1);
  6: assertTrue(gCWindowAlgorithm0.scalingFlag());
  7: assertNull(integer0);

Test case 10

  1: GenbankStreamSequence genbankStreamSequence0 = new GenbankStreamSequence("B?");
  2: Bases bases0 = new Bases(genbankStreamSequence0);
  3: Strand strand0 = bases0.getReverseStrand();
  4: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  5: Integer integer0 = gCWindowAlgorithm0.getDefaultStepSize(2565);
  6: assertTrue(gCWindowAlgorithm0.scalingFlag());
  7: assertNotNull(integer0);
  8: assertEquals(256, (int)integer0);

Test case 11

  1: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm((Strand) null);

Test case 12

  1: Bases bases0 = new Bases((Sequence) null);
  2: Strand strand0 = bases0.getForwardStrand();
  3: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  4: gCWindowAlgorithm0.getAverage();

Test case 13

  1: float[] floatArray0 = new float[0];
  2: FastaStreamSequence fastaStreamSequence0 = new FastaStreamSequence("", "O`");
  3: Bases bases0 = new Bases(fastaStreamSequence0);
  4: Strand strand0 = bases0.getForwardStrand();
  5: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  6: gCWindowAlgorithm0.getValues(0, 0, floatArray0);

Test case 14

  1: FastaStreamSequence fastaStreamSequence0 = new FastaStreamSequence("RUF*B*3y94G7E/x&g3");
  2: Bases bases0 = new Bases(fastaStreamSequence0);
  3: Strand strand0 = bases0.getReverseStrand();
  4: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  5: float[] floatArray0 = new float[7];
  6: gCWindowAlgorithm0.getValues(254, (-2123), floatArray0);

Test case 15

  1: FastaStreamSequence fastaStreamSequence0 = new FastaStreamSequence("FD#K#.bpk|Qa1G", "FD#K#.bpk|Qa1G");
  2: Bases bases0 = new Bases(fastaStreamSequence0);
  3: Strand strand0 = bases0.getReverseStrand();
  4: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  5: gCWindowAlgorithm0.getValues(2, 2, (float[]) null);

Test case 16

  1: EmblStreamSequence emblStreamSequence0 = new EmblStreamSequence("FeatureCvTermProp = ");
  2: Bases bases0 = new Bases(emblStreamSequence0);
  3: Strand strand0 = bases0.getReverseStrand();
  4: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  5: emblStreamSequence0.setFromChar(bases0.letter_index);
  6: gCWindowAlgorithm0.getAverage();
  7: assertTrue(gCWindowAlgorithm0.scalingFlag());

Test case 17

  1: RawStreamSequence rawStreamSequence0 = new RawStreamSequence("");
  2: Bases bases0 = new Bases(rawStreamSequence0);
  3: Strand strand0 = bases0.getReverseStrand();
  4: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  5: gCWindowAlgorithm0.getAverage();
  6: assertTrue(gCWindowAlgorithm0.scalingFlag());

Test case 18

  1: Bases bases0 = new Bases((Sequence) null);
  2: Strand strand0 = bases0.getForwardStrand();
  3: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  4: Integer integer0 = gCWindowAlgorithm0.getDefaultStepSize(2241);
  5: assertTrue(gCWindowAlgorithm0.scalingFlag());
  6: assertNotNull(integer0);
  7: assertEquals(224, (int)integer0);

Test case 19

  1: Bases bases0 = new Bases((Sequence) null);
  2: Strand strand0 = bases0.getReverseStrand();
  3: GCWindowAlgorithm gCWindowAlgorithm0 = new GCWindowAlgorithm(strand0);
  4: Integer integer0 = gCWindowAlgorithm0.getDefaultStepSize(89);
  5: assertNotNull(integer0);
  6: assertTrue(gCWindowAlgorithm0.scalingFlag());
  7: assertEquals(8, (int)integer0);

Source Code

  1: No source found for uk.ac.sanger.artemis.plot.GCWindowAlgorithm

EvoSuite Parameters

  • TARGET_CLASS: uk.ac.sanger.artemis.plot.GCWindowAlgorithm
  • Size: 19
  • Length: 90
  • criterion: LINE;BRANCH;EXCEPTION;WEAKMUTATION;OUTPUT;METHOD;METHODNOEXCEPTION;CBRANCH
  • Coverage: 0.8577366922163573
  • BranchCoverage: 0.7894736842105263
  • MethodCoverage: 1.0
  • OutputCoverage: 0.39864864864864863


Back to Overview