Merge pull request '[agent/codex] Full AX v0.8.0 compliance review. Read CODEX.md and .core/re...' (#11) from agent/ax-review--banned-imports--test-naming into dev
This commit is contained in:
commit
44e3478be0
4 changed files with 13 additions and 13 deletions
14
edge_test.go
14
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.
|
||||
|
|
|
|||
|
|
@ -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"),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue