const makeId = require("../../util/makeId"); /** * @description 代码作业的统计信息 * @property {number} tolerateCommit 目前还可以允许的不规范git提交次数 * @property {number} branch git分支部分的规范情况得分 * @property {number} commitMessage git提交部分的规范情况得分 * @property {number} buildSuccess 构建成功次数 * @property {number} buildFailure 构建失败次数 * @property {number} prodUnitTestSuccess 生产环境下单元测试(包含生产环境的隐藏用例)成功次数 * @property {number} prodUnitTestFailure 生产环境下单元测试(包含生产环境的隐藏用例)失败次数 * @property {number} otherUnitTestSuccess 其他环境下单元测试成功次数 * @property {number} otherUnitTestFailure 其他环境下单元测试失败次数 * @property {number} functionalTestSuccess 功能测试成功次数 * @property {number} functionalTestFail 功能测试成功次数 * @property {Object} prodUnitTestRecords 生产环境单元测试记录 * @property {Object} otherUnitTestRecords 其他环境单元测试记录 * @property {Object} functionTestRecords 功能测试记录 * @property {Object} buildRecords 构建记录列表 * */ module.exports = () => { return { codeWorkId: makeId(), groupId: makeId(), tolerateCommit: 8, branch: 82, commitMessage: 95, buildSuccess: 12, buildFailure: 8, prodUnitTestSuccess: 12, prodUnitTestFailure: 9, otherUnitTestSuccess: 4, otherUnitTestFailure: 20, functionalTestSuccess: 12, functionalTestFail: 9, prodUnitTestRecords: [], otherUnitTestRecords: [], functionTestRecords: [], buildRecords: [] }; };