| 12345678910111213141516171819202122232425262728 |
- const makeId = require("../../util/makeId");
- const oneFunctionalTestSerializer = require("./OneFunctionalSerializer");
- /**
- * @description 代码一次功能测试的基本信息
- * @typedef {Object} FunctionTestSerializerType
- * @property {number | string} id 代码一次功能测试的id
- * @property {number} time 测试时间
- * @property {number | string} deployId 对应的部署id
- * @property {oneFunctionalTestSerializer[]} detail 未通过的测试用例列表
- */
- /**
- * @description 生成代码构建信息
- * @returns {FunctionTestSerializerType}
- */
- module.exports = () => {
- return {
- id: makeId(),
- time: 3,
- deployId: makeId(),
- detail: [
- oneFunctionalTestSerializer(),
- oneFunctionalTestSerializer(),
- oneFunctionalTestSerializer()
- ]
- };
- };
|