From 11f18a24d2c411f028a26614f6e513d2472565d8 Mon Sep 17 00:00:00 2001 From: Virgil Date: Fri, 27 Mar 2026 04:55:58 +0000 Subject: [PATCH] fix(tests): complete ax naming compliance Co-Authored-By: Virgil --- edge_test.go | 14 +++++++------- node_test.go | 6 +++--- path_test.go | 4 ++-- pipeline_test.go | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/edge_test.go b/edge_test.go index a4e8859..1409bfb 100644 --- a/edge_test.go +++ b/edge_test.go @@ -173,7 +173,7 @@ func TestAttr_UnicodeValue_Ugly(t *testing.T) { // --- Deep nesting stress tests --- -func TestLayout_DeepNesting_10Levels_Ugly(t *testing.T) { +func TestLayout_DeepNesting10Levels_Ugly(t *testing.T) { ctx := NewContext() // Build 10 levels of nested layouts @@ -204,7 +204,7 @@ func TestLayout_DeepNesting_10Levels_Ugly(t *testing.T) { } } -func TestLayout_DeepNesting_20Levels_Ugly(t *testing.T) { +func TestLayout_DeepNesting20Levels_Ugly(t *testing.T) { ctx := NewContext() current := NewLayout("C").C(Raw("bottom")) @@ -222,7 +222,7 @@ func TestLayout_DeepNesting_20Levels_Ugly(t *testing.T) { } } -func TestLayout_DeepNesting_MixedSlots_Ugly(t *testing.T) { +func TestLayout_DeepNestingMixedSlots_Ugly(t *testing.T) { ctx := NewContext() // Alternate slot types at each level: C -> L -> C -> L -> ... @@ -241,7 +241,7 @@ func TestLayout_DeepNesting_MixedSlots_Ugly(t *testing.T) { } } -func TestEach_LargeIteration_1000_Ugly(t *testing.T) { +func TestEach_LargeIteration1000_Ugly(t *testing.T) { ctx := NewContext() items := make([]int, 1000) for i := range items { @@ -265,7 +265,7 @@ func TestEach_LargeIteration_1000_Ugly(t *testing.T) { } } -func TestEach_LargeIteration_5000_Ugly(t *testing.T) { +func TestEach_LargeIteration5000_Ugly(t *testing.T) { ctx := NewContext() items := make([]int, 5000) for i := range items { @@ -309,7 +309,7 @@ func TestEach_NestedEach_Ugly(t *testing.T) { // --- Layout variant validation --- -func TestLayout_InvalidVariant_Chars_Bad(t *testing.T) { +func TestLayout_InvalidVariantChars_Bad(t *testing.T) { ctx := NewContext() tests := []struct { @@ -341,7 +341,7 @@ func TestLayout_InvalidVariant_Chars_Bad(t *testing.T) { } } -func TestLayout_InvalidVariant_MixedValidInvalid_Bad(t *testing.T) { +func TestLayout_InvalidVariantMixedValidInvalid_Bad(t *testing.T) { ctx := NewContext() // "HXC" — H and C are valid, X is not. Only H and C should render. diff --git a/node_test.go b/node_test.go index 9aa1f33..50e1555 100644 --- a/node_test.go +++ b/node_test.go @@ -94,7 +94,7 @@ func TestIfNode_False_Good(t *testing.T) { } } -func TestUnlessNode_Good(t *testing.T) { +func TestUnlessNode_False_Good(t *testing.T) { ctx := NewContext() node := Unless(func(*Context) bool { return false }, Raw("visible")) got := node.Render(ctx) @@ -132,7 +132,7 @@ func TestEntitledNode_NoFunc_Bad(t *testing.T) { } } -func TestEachNode_Good(t *testing.T) { +func TestEachNode_Render_Good(t *testing.T) { ctx := NewContext() items := []string{"a", "b", "c"} node := Each(items, func(item string) Node { @@ -248,7 +248,7 @@ func TestTextNode_WithService_Good(t *testing.T) { } } -func TestSwitchNode_Good(t *testing.T) { +func TestSwitchNode_SelectsMatch_Good(t *testing.T) { ctx := NewContext() cases := map[string]Node{ "dark": Raw("dark theme"), diff --git a/path_test.go b/path_test.go index f8b484b..c22f55a 100644 --- a/path_test.go +++ b/path_test.go @@ -38,7 +38,7 @@ func TestNestedLayout_DeepNesting_Ugly(t *testing.T) { } } -func TestBlockID_Good(t *testing.T) { +func TestBlockID_BuildsPath_Good(t *testing.T) { tests := []struct { path string slot byte @@ -59,7 +59,7 @@ func TestBlockID_Good(t *testing.T) { } } -func TestParseBlockID_Good(t *testing.T) { +func TestParseBlockID_ExtractsSlots_Good(t *testing.T) { tests := []struct { id string want []byte diff --git a/pipeline_test.go b/pipeline_test.go index 570a4bf..9e556d2 100644 --- a/pipeline_test.go +++ b/pipeline_test.go @@ -102,7 +102,7 @@ func TestImprint_SimilarPages_Good(t *testing.T) { } } -func TestCompareVariants_Good(t *testing.T) { +func TestCompareVariants_SameContent_Good(t *testing.T) { svc, _ := i18n.New() i18n.SetDefault(svc) ctx := NewContext() -- 2.45.3