Skip to content

Commit 11f49e3

Browse files
Tofelgithub-actions[bot]
authored andcommitted
[Bot] Add automatically generated go documentation
1 parent d0b3ee4 commit 11f49e3

File tree

3 files changed

+79
-6
lines changed

3 files changed

+79
-6
lines changed

folders.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[
2+
{
3+
"folder": "framework"
4+
},
5+
{
6+
"folder": "framework/examples/myproject"
7+
},
8+
{
9+
"folder": "framework/examples/myproject_cll"
10+
},
11+
{
12+
"folder": "havoc"
13+
},
14+
{
15+
"folder": "k8s-test-runner"
16+
},
17+
{
18+
"folder": "lib"
19+
},
20+
{
21+
"folder": "lib/grafana"
22+
},
23+
{
24+
"folder": "seth"
25+
},
26+
{
27+
"folder": "seth/examples_wasp"
28+
},
29+
{
30+
"folder": "tools/asciitable"
31+
},
32+
{
33+
"folder": "tools/breakingchanges"
34+
},
35+
{
36+
"folder": "tools/citool"
37+
},
38+
{
39+
"folder": "tools/ecrimagefetcher"
40+
},
41+
{
42+
"folder": "tools/envresolve"
43+
},
44+
{
45+
"folder": "tools/flakeguard"
46+
},
47+
{
48+
"folder": "tools/ghlatestreleasechecker"
49+
},
50+
{
51+
"folder": "tools/ghsecrets"
52+
},
53+
{
54+
"folder": "tools/gotestloghelper"
55+
},
56+
{
57+
"folder": "tools/testlistgenerator"
58+
},
59+
{
60+
"folder": "tools/workflowresultparser"
61+
},
62+
{
63+
"folder": "wasp"
64+
},
65+
{
66+
"folder": "wasp/examples"
67+
}
68+
]

seth/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import (
1515
"github.com/pkg/errors"
1616
)
1717

18+
// MyAmazingNewFunction returns a predefined string value.
19+
// It can be used as a placeholder or for testing purposes in various contexts.
1820
func MyAmazingNewFunction() string {
1921
return "bla bla bla"
2022
}

tools/flakeguard/reports/reports.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,15 @@ func AggregateTestResults(folderPath string) (*TestReport, error) {
188188
return fullReport, nil
189189
}
190190

191-
// PrintTests prints tests in a pretty format
192-
func PrintTests(
193-
w io.Writer,
194-
tests []TestResult,
195-
maxPassRatio float64,
196-
) (runs, passes, fails, skips, panickedTests, racedTests, flakyTests int) {
191+
// TestResultsTable generates a formatted table of test results, filtering by a specified pass ratio.
192+
// It returns the table along with counts of runs, passes, failures, skips, and various test states.
193+
// This function is useful for summarizing and analyzing test outcomes in a structured format.
194+
func TestResultsTable(
195+
results []TestResult,
196+
expectedPassRatio float64,
197+
includeCodeOwners bool,
198+
markdown bool,
199+
) (resultsTable [][]string, runs, passes, fails, skips, panickedTests, racedTests, flakyTests int) {
197200
p := message.NewPrinter(language.English) // For formatting numbers
198201
sortTestResults(tests)
199202

0 commit comments

Comments
 (0)