Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateImplementation ¶
ValidateImplementation checks if an implementation has all required sections from the interface Returns a list of missing section titles (normalized to lowercase)
Types ¶
type Section ¶
type Section struct {
Level int // Heading level (1, 2, 3...)
Number string // Auto-generated: "1.1.1"
Title string // "Parse Markdown headings"
Content string // Everything between this heading and next
TestName string // "TestParseMarkdownHeadings" (empty if not a leaf)
Children []*Section // Nested sections
Parent *Section // Parent section (nil for root)
}
Section represents a section in the specification
func (*Section) GetImplementedInterface ¶
func (*Section) IsInterface ¶
func (*Section) RequiresTest ¶
RequiresTest returns true if this section requires a test reference Interfaces and their children don't require tests
type Specification ¶
Specification represents a parsed specification document
func (*Specification) AllLeaves ¶
func (s *Specification) AllLeaves() []*Section
AllLeaves returns all leaf sections in the tree
func (*Specification) RequiredTests ¶
func (s *Specification) RequiredTests() []string
RequiredTests returns all test names that should exist
func (*Specification) ValidateInterfaces ¶
func (s *Specification) ValidateInterfaces() map[string][]string
ValidateInterfaces checks all implementations against their interfaces Returns a map of implementation titles to their missing sections
Click to show internal directories.
Click to hide internal directories.