// tools/generate-tests/generators/concurrency-test-generator/utils.ts — SPEC-034
export function getConcurrencyModelForLanguage(language) {
    const models = {
        go: 'goroutines',
        rust: 'rust-ownership',
        java: 'threads-locks',
        kotlin: 'threads-locks',
        python: 'async-await',
        typescript: 'async-await',
        javascript: 'async-await',
    };
    return models[language] ?? 'async-await';
}
export function getTestExt(language) {
    const exts = {
        typescript: 'ts',
        javascript: 'js',
        python: 'py',
        go: 'go',
        rust: 'rs',
        java: 'java',
        kotlin: 'kt',
    };
    return exts[language] ?? 'ts';
}
export function sanitizeGoName(title) {
    return title.replace(/[^a-zA-Z0-9]/g, '_').replace(/^_+/, '');
}
export function sanitizeJavaName(title) {
    return title
        .split(/\s+/)
        .map((w) => w.charAt(0).toUpperCase() + w.slice(1))
        .join('')
        .replace(/[^a-zA-Z0-9]/g, '');
}
export function sanitizePythonName(title) {
    return title
        .split(/\s+/)
        .map((w) => w.charAt(0).toUpperCase() + w.slice(1))
        .join('')
        .replace(/[^a-zA-Z0-9]/g, '');
}
//# sourceMappingURL=utils.js.map