// Copyright (c) 2026 Storm Dragon // SPDX-License-Identifier: GPL-3.0-or-later package applicationoverrides import "testing" func TestRegionReadIncludesNameAndHandlesMissingInformation(t *testing.T) { for _, trial := range []struct { region Region want string }{ {Region{Name: "Health", Text: "12 of 12"}, "Health: 12 of 12"}, {Region{Name: "Health"}, "Health: Information unavailable"}, {Region{Text: "12 of 12"}, "12 of 12"}, } { if got := trial.region.Read(); got != trial.want { t.Fatalf("%q, want %q", got, trial.want) } } }