DamianSzkuat 6 năm trước cách đây
mục cha
commit
25f8133f95
2 tập tin đã thay đổi với 1 bổ sung9 xóa
  1. 0 5
      stream_file_builder.go
  2. 1 4
      stream_test.go

+ 0 - 5
stream_file_builder.go

@@ -180,11 +180,6 @@ func (sb *StreamFileBuilder) addDefaultStyles(parts map[string]string) (map[stri
 		// fmt.Print(XfId)
 	}
 
-	//parts["xl/styles.xml"], err = sb.xlsxFile.styles.Marshal()
-	//if err!=nil {
-	//	return nil, err
-	//}
-
 	// Default style - Italic
 	style = NewStyle()
 	style.Font.Italic = true

+ 1 - 4
stream_test.go

@@ -11,7 +11,7 @@ import (
 )
 
 const (
-	TestsShouldMakeRealFiles = true
+	TestsShouldMakeRealFiles = false
 )
 
 type StreamSuite struct{}
@@ -262,8 +262,6 @@ func (s *StreamSuite) TestXlsxStreamWrite(t *C) {
 		},
 	}
 	for i, testCase := range testCases {
-		fmt.Print("Current Test case: ")
-		fmt.Println(testCase.testName)
 		var filePath string
 		var buffer bytes.Buffer
 		if TestsShouldMakeRealFiles {
@@ -272,7 +270,6 @@ func (s *StreamSuite) TestXlsxStreamWrite(t *C) {
 
 		if testCase.cellStyles == nil {
 			testCase.cellStyles = [][][]int{}
-			//testCase.cellStyles = append(testCase.cellStyles, [][]int{})
 			for j,_ := range testCase.workbookData{
 				testCase.cellStyles = append(testCase.cellStyles, [][]int{})
 				for k,_ := range testCase.workbookData[j]{