ton-assembly
Version:
TON assembler and disassembler
36 lines • 1.21 kB
TypeScript
import type { TraceInfo } from "../trace";
export type Line = {
readonly line: string;
readonly info: Covered | Uncovered | Skipped;
};
export type Covered = {
readonly $: "Covered";
readonly hits: number;
readonly gasCosts: readonly number[];
};
export type Uncovered = {
readonly $: "Uncovered";
};
export type Skipped = {
readonly $: "Skipped";
};
export type InstructionStat = {
readonly name: string;
readonly totalGas: number;
readonly totalHits: number;
readonly avgGas: number;
};
export type CoverageSummary = {
readonly totalLines: number;
readonly coveredLines: number;
readonly uncoveredLines: number;
readonly coveragePercentage: number;
readonly totalGas: number;
readonly totalHits: number;
readonly instructionStats: readonly InstructionStat[];
};
export declare const buildLineInfo: (trace: TraceInfo, asm: string) => readonly Line[];
export declare const buildFuncLineInfo: (traces: TraceInfo[], funcCode: string) => Line[];
export declare const isExecutableLine: (line: string) => boolean;
export declare const generateCoverageSummary: (lines: readonly Line[]) => CoverageSummary;
//# sourceMappingURL=data.d.ts.map