All files / src/comb enc.ts

30% Statements 3/10
100% Branches 0/0
0% Functions 0/5
22.22% Lines 2/9

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 238x                                         8x  
import {stde} from '../stde';
 
class Enc extends stde {
    constructor(in_count: number) {
        super(
            'ENC',
            Array.from({length: in_count}, (_, index) => String(index + 1)),
            Array.from({length: Math.pow(in_count, 0.5)}, (_, index) => String(index + 1)),
            (a) => {
                return a;
            }
        );
        this.style.preffix_name_in_connection = '$D_';
        this.style.preffix_name_out_connection = '$out_';
    }
}
 
function enc(in_count: number) {
    return new Enc(in_count);
}
 
export {Enc, enc};