mirror of
https://github.com/photoprism/photoprism.git
synced 2026-07-18 00:59:38 +00:00
Split the catch-all values.go into one file per concept, each mirrored by its test: distance.go, norm.go, stats.go, product.go, centroid.go, plus the mean methods folded into mean.go and Copy/Dim/Sum into vector.go. Remove values.go, values_test.go, and values_more_test.go so functionality and tests live where developers expect them. Hoist the two 512-dimensional face embeddings shared by the distance, norm, and cosine tests into fixtures_test.go, removing the previous triplication, and decompose the monolithic TestVector into per-concept tests. Close pre-existing coverage gaps in the integer converters and the GeometricMean/HarmonicMean method wrappers, bringing the package to 100% statement coverage. Pure code movement; no behavior change. |
||
|---|---|---|
| .. | ||
| alg | ||
| centroid.go | ||
| centroid_test.go | ||
| const.go | ||
| distance.go | ||
| distance_test.go | ||
| fixtures_test.go | ||
| mean.go | ||
| mean_test.go | ||
| norm.go | ||
| norm_test.go | ||
| normalize.go | ||
| normalize_test.go | ||
| product.go | ||
| product_test.go | ||
| stats.go | ||
| stats_test.go | ||
| vector.go | ||
| vector_test.go | ||