The tape gate reads intensity by ray index, so it is only correct when the intensity array and the ranges array come from the same scan and have the same length. The handler hands scan->intensities straight across - not rebuilt, not buffered, not remembered from an earlier scan. That is a joint, and joints are what the unit tests below cannot see, so it has its own coverage: ATapeProfileOnAScanWithoutIntensitiesSaysWhy feeds the exact plate being looked for on a scan that carries no intensities and requires the handler to say "no intensity data". A handler that passed a fabricated array would never produce that line. One log line per action run, on the first detection that matches, and only when the tape check is on: how many bright rays each wing returned, the measured spacing and widths, each against the profile value and tolerance. This is the number whoever installs a dock needs - tape stuck a few centimetres off still detects today and then fails outright once it is dusty or damp, and without this line nobody knows it was already at the edge. Once, because it is a commissioning number and not a heartbeat.
27 KiB
27 KiB