report

作者: 狮心王Richards | 来源:发表于2017-11-01 22:59 被阅读0次

WC final report for mbaxswx3

Overview

Requirement met:

  • Counting lines, words, bytes, chars and the number of longest sentences.
  • Supporting different input files.
  • Supporting different combination of flags(-l,-w,-c,-m,-L)
  • Verifying illegal options.
  • Calculating total result for multiple input files.
  • Displaying version and manual information.
  • Supporting ' Stdin ' mode with a combination of flags.

Requirement missed:

  • flags from -lwc, -lm etc.

Product: Design and implementation

  • Architecture:
    The wc.py follows the MVC design pattern:
  1. Controller Layer: The argparse module receives parameters from users and then to determine which function should be called.
  2. Model Layer: The functions(countLine, countWord and countBytes) are responsible to count the correct result of input files.
  3. View Layer: The displaying function(miniwc1,miniwc2 etc) receives the data from Model Layer and then print it out on the terminal

Source code metrics

As for the input data, it is suitable to give various types of data in order to test the robustness under different situations to the software.
separating each output variable by using \t tag.
Sometimes forget some possible combinations of different flags

相关文章

  • groovy-doc

    Apache Groovy document @Value('${report.properties.report...

  • vue 笔记

    懒加载 路由: { path: '/report', name: 'report', componen...

  • vue-cli打包优化之分析工具webpack-bundle-a

    在vue3.0中引入report 运行 yarn report完成之后再dist文件夹下打开report.html...

  • 用户人群报告资料

    http://report.iresearch.cn/report_pdf.aspx?id=3262

  • 前端构建工具指标

    Tooling.Report[https://bundlers.tooling.report/] Code spl...

  • Perl 脚本记录1

    Summary_Timing_Report.pl (适用于Innovus Timing report 处理)

  • Mac版idea打不开闪退

    报错信息:(系统12.2以上) Translated Report (Full Report Below) Pro...

  • Report

    The SUN Your Key to Self-Actualization The Sun in your bi...

  • report

    WC final report for mbaxswx3 Overview Requirement met: Co...

  • Report

    习题1.2 1.题目背景 我们把整个模拟过程分为三部分:欧拉方法模拟,标准函数模拟,函数曲线比较,分三部分进行编程...

网友评论

      本文标题:report

      本文链接:https://www.haomeiwen.com/subject/fvggpxtx.html