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

Function TestDecode

internal/sheetsformat/format_test.go:111–124  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

109}
110
111func TestDecode(t *testing.T) {
112 var format sheets.CellFormat
113 if err := Decode([]byte(`{"textFormat":{"bold":false}}`), &format); err != nil {
114 t.Fatalf("Decode() error = %v", err)
115 }
116
117 if format.TextFormat == nil {
118 t.Fatal("missing text format")
119 }
120
121 if err := Decode([]byte(`{"unknown":true}`), &format); err == nil {
122 t.Fatal("expected unknown field error")
123 }
124}
125
126func TestHasBordersTypo(t *testing.T) {
127 if !HasBordersTypo("boarders.top.style") {

Callers

nothing calls this directly

Calls 1

DecodeFunction · 0.70

Tested by

no test coverage detected