All files / src/git/zlib zcl_abapgit_zlib_huffman.clas.testclasses.abap

100% Statements 53/53
100% Branches 2/2
100% Functions 2/2
100% Lines 53/53

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 541x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL.
 
  PRIVATE SECTION.
    METHODS create1 FOR TESTING RAISING cx_static_check.
    METHODS create2 FOR TESTING RAISING cx_static_check.
ENDCLASS.
 
 
CLASS ltcl_test IMPLEMENTATION.
 
  METHOD create1.
 
    DATA lo_huffman TYPE REF TO zcl_abapgit_zlib_huffman.
    DATA lt_lengths TYPE zcl_abapgit_zlib_huffman=>ty_lengths.
 
 
    DO 10 TIMES.
      APPEND 8 TO lt_lengths.
    ENDDO.
 
    CREATE OBJECT lo_huffman
      EXPORTING
        it_lengths = lt_lengths.
 
  ENDMETHOD.
 
  METHOD create2.
 
    DATA lo_huffman TYPE REF TO zcl_abapgit_zlib_huffman.
    DATA lt_lengths TYPE zcl_abapgit_zlib_huffman=>ty_lengths.
 
 
    DO 144 TIMES.
      APPEND 8 TO lt_lengths.
    ENDDO.
    DO 112 TIMES.
      APPEND 9 TO lt_lengths.
    ENDDO.
    DO 24 TIMES.
      APPEND 7 TO lt_lengths.
    ENDDO.
    DO 8 TIMES.
      APPEND 8 TO lt_lengths.
    ENDDO.
 
    CREATE OBJECT lo_huffman
      EXPORTING
        it_lengths = lt_lengths.
 
 
  ENDMETHOD.
 
ENDCLASS.