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

Function SheetRuleCount

internal/sheetsconditional/conditional.go:124–138  ·  view source on GitHub ↗
(spreadsheet *sheets.Spreadsheet, sheetName string)

Source from the content-addressed store, hash-verified

122}
123
124func SheetRuleCount(spreadsheet *sheets.Spreadsheet, sheetName string) (int64, int, error) {
125 if spreadsheet == nil {
126 return 0, 0, errEmptySpreadsheetMetadata
127 }
128
129 for _, sheet := range spreadsheet.Sheets {
130 if sheet == nil || sheet.Properties == nil || sheet.Properties.Title != sheetName {
131 continue
132 }
133
134 return sheet.Properties.SheetId, len(sheet.ConditionalFormats), nil
135 }
136
137 return 0, 0, invalidf("unknown sheet %q", sheetName)
138}
139
140func BuildDeleteRequests(sheetID int64, count int, indexRaw string, all bool) ([]*sheets.Request, error) {
141 if all {

Callers 2

RunMethod · 0.92
TestSheetRuleCountFunction · 0.85

Calls 1

invalidfFunction · 0.70

Tested by 1

TestSheetRuleCountFunction · 0.68