"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const code_scanner_1 = require("../walls/02-scanner/blindspots/code-scanner");
describe('code-scanner SQL column fix (Unit 1.1.1)', () => {
    const project = 'sql-fix-unit-test';
    test('scanCodebase persists patterns with trust_score column populated', () => {
        (0, code_scanner_1.scanCodebase)(process.cwd(), project);
        const patterns = (0, code_scanner_1.getCodePatterns)(project);
        expect(patterns.length).toBeGreaterThan(0);
    });
    test('every saved pattern has a valid trust_score (0-100), not NULL', () => {
        const patterns = (0, code_scanner_1.getCodePatterns)(project);
        expect(patterns.length).toBeGreaterThan(0);
        for (const p of patterns) {
            expect(p.trustScore).toBeGreaterThanOrEqual(0);
            expect(p.trustScore).toBeLessThanOrEqual(100);
            expect(Number.isFinite(p.trustScore)).toBe(true);
        }
    });
});
//# sourceMappingURL=code-scanner-sql-fix.test.js.map