• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ast2llm / ast2llm-go / 15809529209

22 Jun 2025 06:22PM UTC coverage: 92.19%. Remained the same
15809529209

push

github

web-flow
Merge pull request #8 from ast2llm/fix-after-transfering

720 of 781 relevant lines covered (92.19%)

35.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/internal/composer/format_function.go
1
package composer
2

3
import (
4
        "fmt"
5
        "strings"
6

7
        ourtypes "github.com/vlad/ast2llm-go/internal/types"
8
)
9

10
// FormatFunction formats a FunctionInfo into the StringBuilder.
11
func (p *ProjectComposer) FormatFunction(builder *strings.Builder, fn *ourtypes.FunctionInfo, indent string) {
9✔
12
        builder.WriteString(fmt.Sprintf("%sFunction: %s\n", indent, fn.Name))
9✔
13
        if fn.Comment != "" {
11✔
14
                builder.WriteString(fmt.Sprintf("%s  Comment: %s\n", indent, fn.Comment))
2✔
15
        }
2✔
16
        builder.WriteString(fmt.Sprintf("%s  Signature: (%s)", indent, strings.Join(fn.Params, ", ")))
9✔
17
        if len(fn.Returns) > 0 {
11✔
18
                builder.WriteString(fmt.Sprintf(" -> (%s)", strings.Join(fn.Returns, ", ")))
2✔
19
        }
2✔
20
        builder.WriteString("\n")
9✔
21
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc