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

terrapower / armi / 758
87%

Build:
DEFAULT BRANCH: master
Ran 26 Feb 2021 01:12AM UTC
Jobs 1
Files 400
Run time 1min
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

pending completion
758

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

Jobs
ID Job ID Ran Files Coverage
3 758.3 (TOXENV=cov,report) 26 Feb 2021 01:12AM UTC 0
79.95
Travis Job 758.3
Source Files on build 758
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #758
  • 4e07f10a on github
  • Prev Build on master (#757)
  • Next Build on master (#762)
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