As long as people are discussing vias in PCB, I'll raise a different
question which occurred to me recently.
Modern electronic manufacturing methods often include a testing step
in which the stuffed board is checked for connectivitiy using either a
"bed of nails" test fixture, or with a "flying probe" robotic
probe. These tests are totally automated, and are performed by very
expensive machines manufactured specifically for testing PCBs. Both
types of test use little brass probes which look like pogo sticks
to touch little round pads you attach to each and every track. These
round pads are maybe 30 -- 50 mils in diameter. The pads live only on
the surface metal layers, and the soldermask is cleared away from the
pad so that the probe may make contact. Using these pads and your
netlist, the machines can verify that your newly assembled PCB doesn't
have any shorts, connections are correct, etc. [1]