Skip to content

Commit dcb26b2

Browse files
authored
Made unit tests compatibility with the next Go language version
- Fix documents issues for the `AddChart` function - Update GitHub sponsor profile
1 parent f8aa3ad commit dcb26b2

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/FUNDING.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
patreon: xuri
1+
github: xuri
22
open_collective: excelize
3+
patreon: xuri
34
ko_fi: xurime
45
liberapay: xuri
56
issuehunt: xuri

chart.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -846,17 +846,17 @@ func parseChartOptions(opts *Chart) (*Chart, error) {
846846
// Color
847847
// VertAlign
848848
//
849-
// LogBase: Specifies logarithmic scale for the YAxis.
849+
// LogBase: Specifies logarithmic scale base number of the vertical axis.
850850
//
851851
// NumFmt: Specifies that if linked to source and set custom number format code
852852
// for axis. The 'NumFmt' property is optional. The default format code is
853853
// 'General'.
854854
//
855-
// Title: Specifies that the primary horizontal or vertical axis title. The
856-
// 'Title' property is optional.
855+
// Title: Specifies that the primary horizontal or vertical axis title and
856+
// resize chart. The 'Title' property is optional.
857857
//
858858
// Set chart size by 'Dimension' property. The 'Dimension' property is optional.
859-
// The default width is 480, and height is 290.
859+
// The default width is 480, and height is 260.
860860
//
861861
// combo: Specifies the create a chart that combines two or more chart types in
862862
// a single chart. For example, create a clustered column - line chart with

lib_test.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,8 @@ func TestReadBytes(t *testing.T) {
342342
}
343343

344344
func TestUnzipToTemp(t *testing.T) {
345-
for _, v := range []string{"go1.19", "go1.20"} {
346-
if strings.HasPrefix(runtime.Version(), v) {
347-
t.Skip()
348-
}
345+
if ver := runtime.Version(); strings.HasPrefix(ver, "go1.19") || strings.HasPrefix(ver, "go1.2") {
346+
t.Skip()
349347
}
350348
os.Setenv("TMPDIR", "test")
351349
defer os.Unsetenv("TMPDIR")

0 commit comments

Comments
 (0)