From dcb26b2cb8bec11c803cae35fa95e6906b8fef37 Mon Sep 17 00:00:00 2001 From: xuri Date: Fri, 30 Jun 2023 05:02:18 +0000 Subject: [PATCH] Made unit tests compatibility with the next Go language version - Fix documents issues for the `AddChart` function - Update GitHub sponsor profile --- .github/FUNDING.yml | 3 ++- chart.go | 8 ++++---- lib_test.go | 6 ++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index ff137ebd..ab9fc53e 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,5 +1,6 @@ -patreon: xuri +github: xuri open_collective: excelize +patreon: xuri ko_fi: xurime liberapay: xuri issuehunt: xuri diff --git a/chart.go b/chart.go index 65200e80..0fea7712 100644 --- a/chart.go +++ b/chart.go @@ -846,17 +846,17 @@ func parseChartOptions(opts *Chart) (*Chart, error) { // Color // VertAlign // -// LogBase: Specifies logarithmic scale for the YAxis. +// LogBase: Specifies logarithmic scale base number of the vertical axis. // // NumFmt: Specifies that if linked to source and set custom number format code // for axis. The 'NumFmt' property is optional. The default format code is // 'General'. // -// Title: Specifies that the primary horizontal or vertical axis title. The -// 'Title' property is optional. +// Title: Specifies that the primary horizontal or vertical axis title and +// resize chart. The 'Title' property is optional. // // Set chart size by 'Dimension' property. The 'Dimension' property is optional. -// The default width is 480, and height is 290. +// The default width is 480, and height is 260. // // combo: Specifies the create a chart that combines two or more chart types in // a single chart. For example, create a clustered column - line chart with diff --git a/lib_test.go b/lib_test.go index 013cf053..fe8d6a8f 100644 --- a/lib_test.go +++ b/lib_test.go @@ -342,10 +342,8 @@ func TestReadBytes(t *testing.T) { } func TestUnzipToTemp(t *testing.T) { - for _, v := range []string{"go1.19", "go1.20"} { - if strings.HasPrefix(runtime.Version(), v) { - t.Skip() - } + if ver := runtime.Version(); strings.HasPrefix(ver, "go1.19") || strings.HasPrefix(ver, "go1.2") { + t.Skip() } os.Setenv("TMPDIR", "test") defer os.Unsetenv("TMPDIR")