File: row_test.go

package info (click to toggle)
golang-github-tealeg-xlsx 1.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,104 kB
  • sloc: makefile: 3
file content (20 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package xlsx

import (
	. "gopkg.in/check.v1"
)

type RowSuite struct{}

var _ = Suite(&RowSuite{})

// Test we can add a new Cell to a Row
func (r *RowSuite) TestAddCell(c *C) {
	var f *File
	f = NewFile()
	sheet, _ := f.AddSheet("MySheet")
	row := sheet.AddRow()
	cell := row.AddCell()
	c.Assert(cell, NotNil)
	c.Assert(len(row.Cells), Equals, 1)
}