Clean and update documentation
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful

This commit is contained in:
2026-06-11 10:00:15 -05:00
parent c417c892d9
commit 8041f99782
11 changed files with 638 additions and 737 deletions

37
model/docs_test.go Normal file
View File

@@ -0,0 +1,37 @@
package model
import (
"os"
"strings"
"testing"
)
func TestDocumentedConsumerModelTypes(t *testing.T) {
raw, err := os.ReadFile("../docs/consumers/pkg-model.md")
if err != nil {
t.Fatalf("ReadFile(pkg-model.md) error = %v", err)
}
doc := string(raw)
required := []string{
"gitea.maximumdirect.net/ejr/weatherfeeder/model",
"WeatherObservation",
"WeatherForecastRun",
"WeatherForecastPeriod",
"WeatherForecastDiscussion",
"WeatherForecastDiscussionSection",
"WeatherStoryRun",
"WeatherStory",
"WeatherAlertRun",
"WeatherAlert",
"WeatherAlertReference",
"WeatherOutlookRun",
"WeatherOutlook",
"WMOCode",
}
for _, want := range required {
if !strings.Contains(doc, want) {
t.Fatalf("docs/consumers/pkg-model.md missing %q", want)
}
}
}