MCPcopy
hub / github.com/qax-os/excelize / TestGetFormulaUniqueArgs

Function TestGetFormulaUniqueArgs

calc_test.go:5277–5289  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

5275}
5276
5277func TestGetFormulaUniqueArgs(t *testing.T) {
5278 argsList := list.New()
5279 emptyArg := newEmptyFormulaArg()
5280 argsList.PushBack(emptyArg)
5281
5282 _, err := getFormulaUniqueArgs(argsList)
5283 assert.Equal(t, "missing first argument to UNIQUE", err.Error)
5284
5285 argsList = list.New()
5286 argsList.PushBack(newListFormulaArg([]formulaArg{newErrorFormulaArg(formulaErrorNAME, formulaErrorNAME)}))
5287 _, err = getFormulaUniqueArgs(argsList)
5288 assert.Equal(t, formulaErrorNAME, err.Error)
5289}
5290
5291func TestCalcDatabase(t *testing.T) {
5292 cellData := [][]interface{}{

Callers

nothing calls this directly

Calls 4

newEmptyFormulaArgFunction · 0.85
getFormulaUniqueArgsFunction · 0.85
newListFormulaArgFunction · 0.85
newErrorFormulaArgFunction · 0.85

Tested by

no test coverage detected