private getSarifResultKind()

in src/axe-raw-sarif-converter.ts [227:242]


    private getSarifResultKind(resultValue?: ResultValue): Sarif.Result.kind {
        const resultToKindMapping: { [K in ResultValue]: Sarif.Result.kind } = {
            passed: 'pass',
            failed: 'fail',
            inapplicable: 'notApplicable',
            cantTell: 'open',
        };

        if (!resultValue) {
            throw new Error(
                'getSarifResultKind(resultValue): resultValue is undefined',
            );
        }

        return resultToKindMapping[resultValue];
    }