MCPcopy Create free account
hub / github.com/openclaw/gogcli / TestBuildRequestsValidation

Function TestBuildRequestsValidation

internal/docsformat/format_test.go:55–70  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

53}
54
55func TestBuildRequestsValidation(t *testing.T) {
56 tests := []Options{
57 {TextColor: "oops"},
58 {Link: "https://example.com", ClearLink: true},
59 {Bold: true, ClearBold: true},
60 {Alignment: "sideways"},
61 {Code: true, FontFamily: "Arial"},
62 {Code: true, Background: "#fff"},
63 {HeadingLevel: intPointer(1), NamedStyle: "TITLE"},
64 }
65 for _, options := range tests {
66 if _, err := BuildRequests(options, 1, 2, ""); err == nil {
67 t.Fatalf("BuildRequests(%#v) expected error", options)
68 }
69 }
70}
71
72func TestOptionsAny(t *testing.T) {
73 if (Options{}).Any() {

Callers

nothing calls this directly

Calls 2

intPointerFunction · 0.85
BuildRequestsFunction · 0.85

Tested by

no test coverage detected