* Rename metric class name.

This commit is contained in:
qixinzhi
2024-04-28 06:41:00 +00:00
parent e05f74c87e
commit 6f599e6055
9 changed files with 15 additions and 15 deletions
@@ -18,7 +18,7 @@
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @Link https://www.zentao.net
*/
class ac_of_all_in_waterfall extends baseCalc
class ac_of_weekly_all_in_waterfall extends baseCalc
{
public $result = array();
@@ -18,7 +18,7 @@
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @Link https://www.zentao.net
*/
class ev_of_finished_task_in_waterfall extends baseCalc
class ev_of_weekly_finished_task_in_waterfall extends baseCalc
{
public $dataset = 'getWaterfallTasks';
@@ -18,7 +18,7 @@
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @Link https://www.zentao.net
*/
class pv_of_task_in_waterfall extends baseCalc
class pv_of_weekly_task_in_waterfall extends baseCalc
{
public $result = array();
@@ -1,7 +1,7 @@
<?php
/**
* 按瀑布项目统计的截止本周的成本偏差率。
* Cv in waterfall.
* Cv weekly in waterfall.
*
* 范围:project
* 对象:task
@@ -18,7 +18,7 @@
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @Link https://www.zentao.net
*/
class cv_in_waterfall extends baseCalc
class cv_weekly_in_waterfall extends baseCalc
{
public $result = array();
@@ -1,7 +1,7 @@
<?php
/**
* 按瀑布项目统计的截止本周的进度偏差率。
* Sv in waterfall.
* Sv weekly in waterfall.
*
* 范围:project
* 对象:task
@@ -18,7 +18,7 @@
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @Link https://www.zentao.net
*/
class sv_in_waterfall extends baseCalc
class sv_weekly_in_waterfall extends baseCalc
{
public $result = array();
@@ -3,7 +3,7 @@
/**
title=ac_of_all_in_waterfall
title=ac_of_weekly_all_in_waterfall
timeout=0
cid=1
@@ -22,4 +22,4 @@ $calc = $metric->calcMetric(__FILE__);
r(count($calc->getResult())) && p('') && e('5'); // 测试分组数。
r($calc->getResult(array('project' => '1', 'year' => '2024', 'week' => '32'))) && p('0:value') && e('71.5'); // 测试项目1。
r($calc->getResult(array('project' => '1', 'year' => '2024', 'week' => '32'))) && p('0:value') && e('71.5'); // 测试项目1。
@@ -3,7 +3,7 @@
/**
title=ev_of_finished_task_in_waterfall
title=ev_of_weekly_finished_task_in_waterfall
timeout=0
cid=1
@@ -22,4 +22,4 @@ $metric = new metricTest();
$calc = $metric->calcMetric(__FILE__);
r(count($calc->getResult())) && p('') && e('1'); // 测试分组数。
r($calc->getResult(array('project' => '1', 'year' => '2024', 'week' => '03'))) && p('0:value') && e('396.32'); // 测试项目1。
r($calc->getResult(array('project' => '1', 'year' => '2024', 'week' => '03'))) && p('0:value') && e('396.32'); // 测试项目1。
@@ -3,7 +3,7 @@
/**
title=cv_in_waterfall
title=cv_weekly_in_waterfall
timeout=0
cid=1
@@ -24,4 +24,4 @@ $calc = $metric->calcMetric(__FILE__);
r(count($metric->getReuseCalcResult($calc))) && p('') && e('5'); // 测试分组数。
r($metric->getReuseCalcResult($calc, array('project' => '1', 'year' => '2024', 'week' => '05'))) && p('0:value') && e('45.6259'); // 测试项目1。
r($metric->getReuseCalcResult($calc, array('project' => '1', 'year' => '2024', 'week' => '05'))) && p('0:value') && e('45.6259'); // 测试项目1。
@@ -3,7 +3,7 @@
/**
title=sv_in_waterfall
title=sv_weekly_in_waterfall
timeout=0
cid=1
@@ -23,4 +23,4 @@ $calc = $metric->calcMetric(__FILE__);
r(count($metric->getReuseCalcResult($calc))) && p('') && e('1'); // 测试分组数。
r($metric->getReuseCalcResult($calc, array('project' => '1', 'year' => '2024', 'week' => '05'))) && p('0:value') && e('1.0905'); // 测试项目7。
r($metric->getReuseCalcResult($calc, array('project' => '1', 'year' => '2024', 'week' => '05'))) && p('0:value') && e('1.0905'); // 测试项目7。