Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2896201
ArcanistUnitTestResultTestCase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
831 B
Referenced Files
None
Subscribers
None
ArcanistUnitTestResultTestCase.php
View Options
<?php
final
class
ArcanistUnitTestResultTestCase
extends
PhutilTestCase
{
public
function
testCoverageMerges
(
)
{
$cases
=
array
(
array
(
'coverage'
=>
array
(
)
,
'expect'
=>
null
,
)
,
array
(
'coverage'
=>
array
(
'UUUNCNC'
,
)
,
'expect'
=>
'UUUNCNC'
,
)
,
array
(
'coverage'
=>
array
(
'UUCUUU'
,
'UUUUCU'
,
)
,
'expect'
=>
'UUCUCU'
,
)
,
array
(
'coverage'
=>
array
(
'UUCCCU'
,
'UUUCCCNNNC'
,
)
,
'expect'
=>
'UUCCCCNNNC'
,
)
,
)
;
foreach
(
$cases
as
$case
)
{
$input
=
$case
[
'coverage'
]
;
$expect
=
$case
[
'expect'
]
;
$actual
=
ArcanistUnitTestResult
::
mergeCoverage
(
$input
)
;
$this
->
assertEqual
(
$expect
,
$actual
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 22:43 (6 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1115545
Default Alt Text
ArcanistUnitTestResultTestCase.php (831 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment