Back to overview

C++ Unit Tests

Tests check individual classes and functions without running a mission. Organized into focused groups dubbed 'component families' for libraries and other source-level logic like mbutil, geometry, contacts, moosgeodesy, etc.

Current Snapshot

Unit test coverage at a glance

2864 Test Cases

Individual C++ unit tests covering expected and edge-case behavior.

72 Component Families

Groups such as behaviors, geometry, utilities, viewers, and IvP tools.

Component Family Catalog

Component family Targets Cases Description
behaviors_marine Marine Behaviors 39 240 Marine behavior implementations such as waypoint, loiter, station keeping, collision avoidance, and obstacle avoidance.
geometry Geometry 31 706 Geometry primitives, parsers, CPA utilities, shape lifecycles, grids, paths, and polygon generation.
mbutil MB Utilities 19 167 MOOS-IvP utility objects, formatting, timers, macros, hashes, JSON helpers, and node messages.
bhvutil Behavior Utilities 9 98 Behavior utility engines, AOF helpers, refineries, waypoint/loiter helpers, and fixed-turn support.
logutils Log Utilities 5 69 ALog parsing, log files, plot data, app logs, and analysis-plot utilities.
marineview Marine Viewer 5 45 Marine viewer shapes, GUI-adjacent models, image handling, and viewer support classes.
behaviors Behavior Core 4 32 Core IvP behavior state, contact behavior state, and lifecycle records.
ivpbuild IvP Build 4 51 AOFs, ZAICs, PDMaps, reflector internals, and IvP function construction.
apputil App Utilities 3 28 AppCast, InfoCast, and display-formatting helpers used by app-facing utilities.
behaviors_colregs COLREGS Behaviors 3 22 COLREGS behavior support logic, velocity filtering, AOF helpers, and behavior contracts.
logic Logic 3 31 Logic conditions, info buffers, conditional ledgers, and related parsing helpers.
contacts Contact Records 2 106 Node record and rider parsing, serialization, and contact-report behavior.
dep_behaviors Deprecated Behaviors 2 77 Deprecated behavior and obstacle-model code kept under regression coverage.
evalutil Evaluation Utilities 2 34 Mission-evaluation helpers, logic-test sequences, and variable-check utilities.
ufield Field Utilities 2 20 Field utilities, host records, pShare-facing records, and field communication helpers.
genutil General Utilities 2 21 General-purpose string, file, pipe, and utility helpers.
helmivp Helm IvP 2 20 Helm behavior-loading and core helm state helpers.
manifest Manifest 2 19 Manifest file parsing, population, and manifest-set behavior.
marine_pid Marine PID 2 108 Marine PID engines and pMarinePIDV22 app-level control logic.
zaicview ZAIC View 2 21 ZAIC viewer models and GUI-adjacent support code.
pechovar pEchoVar 2 31 pEchoVar EFlipper parsing, component mapping, separator handling, and filter suppression behavior.
alogavg ALog Average 1 11 ALog averaging handlers, time-window parsing, numeric aggregation, and malformed log-input edges.
alogbin ALog Bin 1 9 ALog binning handlers, variable bucketing, interval boundaries, and report formatting.
alogcat ALog Cat 1 9 ALog concatenation handlers, file ordering, header handling, and timestamp normalization.
alogcheck ALog Check 1 24 ALog check condition parsing, log evaluation, pass/fail reporting, and malformed specification handling.
alogclip ALog Clip 1 21 ALog clipping handlers, inclusive time windows, header preservation, preserved variables, and CLI-facing prechecks.
alogcd ALog Collision Detect 1 4 ALog collision-detection reporting over contact and CPA-related log records.
alogeplot ALog EPlot 1 7 ALog expression plotting helpers, variable extraction, source filtering, and expression/report behavior.
alogeval ALog Eval 1 11 ALog evaluation helpers for expression parsing, time windows, condition handling, and result summaries.
aloggrep ALog Grep 1 28 ALog grep handlers, variable/source filters, time gates, format options, and malformed selector handling.
aloghelm ALog Helm 1 6 ALog helm report extraction, helm summary parsing, iteration handling, and report formatting.
alogiter ALog Iter 1 3 ALog iteration handlers, timestamp bucketing, iteration boundaries, and summary output.
alogload ALog Load 1 4 ALog load-report helpers, per-app load parsing, threshold handling, and output summaries.
alogmhash ALog Mission Hash 1 8 ALog mission-hash reporting, hash extraction, missing-field behavior, and report formatting.
alogpare ALog Pare 1 6 ALog pare engine behavior for variable/source filtering, retained records, and file output.
alogpick ALog Pick 1 8 ALog pick handlers for field selection, output formatting, and malformed selector behavior.
alogrm ALog Remove 1 12 ALog removal filters, variable/source exclusion, retained headers, and filter edge cases.
alogscan ALog Scan 1 11 ALog scan handlers, variable discovery, source summaries, and scan-output formatting.
alogsort ALog Sort 1 16 ALog sort handlers, timestamp ordering, stable header behavior, and malformed-line handling.
alogsplit ALog Split 1 5 ALog split handlers, split-key parsing, output naming, batch behavior, and file prechecks.
alogtest ALog Test 1 15 ALog test condition parsing, truth evaluation, time-window checks, and result reporting.
alogtm ALog Time Mark 1 7 ALog time-mark grep handlers, mark selection, time extraction, and malformed marker handling.
ucommand Command Utilities 1 14 Command item, command folio, command summary, and command-routing helpers.
encounters Encounters 1 8 CPA encounter events and alog-facing encounter records.
geodaid Geodesy Aids 1 21 Contact-ledger and geodesy-aid logic used by contact-aware apps.
ipfview IPF View 1 69 IPF viewer parsing and model support.
ivpcore IvP Core 1 86 Core IvP objects, domains, boxes, functions, and priority data structures.
ivpsolve IvP Solve 1 10 IvP problem-solving and encoded-function behavior.
gen_moos_app MOOS App Generator 1 2 MOOS app generator source transformations, file planning, naming rules, and generated text checks.
moosgeodesy MOOS Geodesy 1 26 WGS-84 datum initialization, UTM and local-grid projection, inverse conversion, zone and latitude-band boundaries, safe value semantics, and four disabled PROJ-migration contracts for seam continuity and input validation.
mission_utility Mission Utility 1 4 Source-level checks for the Mission Utility component group.
nspatch NSPatch 1 45 NSPatch patch-file parsing, named-block replacement, line patch behavior, and conflict/edge semantics.
nsplug NSPlug 1 39 NSPlug expansion helpers, macro handling, conditional expansion, and template-processing behavior.
obstacles Obstacles 1 14 Obstacle parsing, representation, and obstacle-manager support objects.
pickpos Pick Position 1 20 Pick-position parsing, geometry selection, output formatting, and invalid-input handling.
pluck Pluck 1 12 Pluck handlers for extracting selected fields, formatting output, and rejecting malformed requests.
pnodereporter Pnodereporter 1 17 Source-level checks for the Pnodereporter component group.
polar Polar Geometry 1 19 Polar plotting and simulator-facing polar helpers.
projfield Project Field 1 6 Field projection helpers, input parsing, projection geometry, and output formatting.
realm Realm Core 1 11 RealmCast and WatchCast core records and channel logic.
survey Survey Utilities 1 11 Survey pattern generation and survey-update helpers.
tagrep Tag Replace 1 9 Tag replacement handlers, tag parsing, replacement rules, and malformed template behavior.
turngeo Turn Geometry 1 18 Turn-generation geometry and leg-run turn helpers.
usim_marine Usim Marine 1 44 Source-level checks for the Usim Marine component group.
isay iSay 1 40 iSay utterance parsing, voice validation, priority queue ordering, and audio-command-adjacent helper behavior.
prealm pRealm 1 17 pRealm PipeWay parsing, display flag handling, expiry math, content descriptors, and equality semantics.
ufldbeaconrangesensor uFldBeaconRangeSensor 1 15 uFldBeaconRangeSensor beacon-buoy state, frequency parsing, range settings, drawing hints, counters, and spec formatting.
ufldcollisiondetect uFldCollisionDetect 1 23 uFldCollisionDetect CPA monitor state, NODE_REPORT admission, group filters, range thresholds, contact density, and CPA event emission.
uflddelve uFldDelve 1 12 uFldDelve transmission records, message counters, latest-source tracking, rate-window math, and pruning boundaries.
uhelmscope uHelmScope 1 16 uHelmScope behavior records, iteration-block parsing, behavior-list summaries, decision-variable tracking, and mode formatting.
uplotviewer uPlotViewer 1 10 uPlotViewer partition records, histogram bucket boundaries, running averages, range filtering, and color/name helpers.
utimerscript uTimerScript 1 55 uTimerScript random variables, random pairs, event parsing, scheduling helpers, math macro expansion, and block-app handling.