parser

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

internal/parser/parser.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertSnakeCaseToTitleCase

func ConvertSnakeCaseToTitleCase(input string) string

ConvertSnakeCaseToTitleCase converts snake_case strings to Title Case

func ExtractTestReference

func ExtractTestReference(content string) string

ExtractTestReference finds and extracts the test name from content Looks for pattern: **Test:** `TestName` Returns empty string if no test reference found

func MergeSpecifications

func MergeSpecifications(specs []*spec.Specification, parentSection *spec.Section) *spec.Specification

MergeSpecifications merges multiple specifications under a parent section

func ParseDirectory

func ParseDirectory(rootPath string) (*spec.Specification, error)

ParseDirectory parses all .md files in a directory recursively and builds a unified specification tree based on the directory structure

func ParseMarkdown

func ParseMarkdown(content string) (*spec.Specification, error)

ParseMarkdown parses markdown content into a Specification

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL