• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

terrapower / armi / 758 / 3
87%
master: 87%

Build:
DEFAULT BRANCH: master
Ran 26 Feb 2021 01:12AM UTC
Files 400
Run time 58s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Feb 2021 01:02AM UTC coverage: 79.947% (+0.9%) from 79.069%
TOXENV=cov,report

push

travis-ci

web-flow
Add several unit tests to improve coverage. (#253)

Unit tests were added to the following files:

armi/utils/test_utils.py
armi/reactor/test_reactors.py
armi/reactor/test_blocks.py
armi/reactor/test_zones.py

In test_utils.py:

Tests for the following functions were added:
parabolicInterpolation
getFloat
getTimeStepNum
relErr
efmt
slantSplit
newtonsMethod
minmizeScalarFunc
prependToList
plotMatrix

Tests for the following were augmented:
linearInterpolation
parabolaFromPoints
capStrLen
createFormattedStrWithDelimiter

In test_reactors.py, tests for the following functions were added:
removeAssembliesInRing
countFuelAxialBlocks
getMaxAssembliesInHexRing
getAssembliesInSquareOrHexRing
getBlocksByIndices
getAllXsSuffixes
getAssembly
getFluxVector
addMoreNodes
findAllAziMeshPoints
findAllRadMeshPoints
getMaxNumPins.

In test_blocks.py, tests for the following functions were added:
isOnWhichSymmetryLine
getDuctIP
getDuctOP
getPinCenterFlatToFlat
ThRZBlock (class)
Point (class)

In test_zones.py, tests for the following functions were added:
Zone class:
extend
index
__add__
Zones class:
_buildManualZones
_buildAssemTypeZones
_buildZonesForEachFA
_buildZonesByOrifice

Builds a Zones object with a unique zone for each orifice type in the
reactor. For the test case created by loadTestReactor, there are only
two zones: zone0, and ltazone0. The test checks that an lta is in the
ltazone0 Zone, and non-ltas are in the regular zone0.

Additionally, the following bugs were corrected:

(1) A bug in the blocks.py ThRZBlock class, thetaOuter() method.
The function called min() where context suggests that max() would be correct.
It seemed to be a copy-paste error from the thetaInner() method directly
above. Need to verify that this possibly unintentional functionality was
not being used in any apps, especially pylot.

(2) A bug in geometryConverter.py, BlockNumberModifier.convert().
block.getType... (continued)

31883 of 39880 relevant lines covered (79.95%)

0.8 hits per line

Source Files on job 758.3 (TOXENV=cov,report)
  • Tree
  • List 0
  • Changed 10
  • Source Changed 9
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1226
  • Travis Job 758.3
  • 4e07f10a on github
  • Prev Job for TOXENV=cov,report on master (#757.3)
  • Next Job for TOXENV=cov,report on master (#762.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc