如何理解“环复杂性"? [英] How to understand the “Cyclomatic Complexity”?

查看:128
本文介绍了如何理解“环复杂性"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我仍然不了解环复杂性"的概念吗?

I still do not understand the concept of "Cyclomatic Complexity"?

推荐答案

最好在Wikipedia ^ ]
This is best explained on Wikipedia Cyclomatic Complexity[^]


用外行的术语循环复杂性"表示程序有多少分支,这些分支可以是(方法,if语句等).

显然,复杂度越高,系统中出现错误的机会就越大,并且测试应用程序分支网络中的每个分支就越困难.
In layman''s term "Cyclomatic Complexity" is how many branches your program has, these can be (methods, if statements, etc).

Obviously the more complexity then the more chance of bugs in the system and the harder it is to test every branch in the network of branches in your application.


这篇关于如何理解“环复杂性"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆