Pin gages (also known as plug gages) are used to test hole size and it's geometry.
Shop Pin Gages
Pin gages are used to gage bored features. They're commonly used in
combination to produce a "Go-No Go" gage that quickly qualifies a bored
hole. Pins are especially useful for gaging the straightness of a
relatively deep bore.