OneFunctionalSerializer.js 629 B

123456789101112131415161718192021
  1. const makeId = require("../../util/makeId");
  2. /**
  3. * @description 代码作业一次页面功能测试一个测试用例的基本信息
  4. * @typedef {Object} OneFunctionalSerializerType
  5. * @property {number | string} id 一个测试用例的id
  6. * @property {boolean} isPass 是否通过
  7. * @property {string} message 输出
  8. */
  9. /**
  10. * @description 生成代码作业一次页面功能测试一个测试用例的基本信息
  11. * @returns {OneFunctionalSerializerType}
  12. */
  13. module.exports = () => {
  14. return {
  15. id: makeId(),
  16. isPass: true,
  17. message: "输出错误,正确输出为3 0 1 2,您的输出为 1 0 2 3"
  18. };
  19. };