未验证 提交 dcb26b2c 编写于 作者: xurime's avatar xurime 提交者: GitHub

Made unit tests compatibility with the next Go language version

- Fix documents issues for the `AddChart` function
- Update GitHub sponsor profile
上级 f8aa3adf
patreon: xuri github: xuri
open_collective: excelize open_collective: excelize
patreon: xuri
ko_fi: xurime ko_fi: xurime
liberapay: xuri liberapay: xuri
issuehunt: xuri issuehunt: xuri
......
...@@ -846,17 +846,17 @@ func parseChartOptions(opts *Chart) (*Chart, error) { ...@@ -846,17 +846,17 @@ func parseChartOptions(opts *Chart) (*Chart, error) {
// Color // Color
// VertAlign // 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 // 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 // for axis. The 'NumFmt' property is optional. The default format code is
// 'General'. // 'General'.
// //
// Title: Specifies that the primary horizontal or vertical axis title. The // Title: Specifies that the primary horizontal or vertical axis title and
// 'Title' property is optional. // resize chart. The 'Title' property is optional.
// //
// Set chart size by 'Dimension' property. The 'Dimension' 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 // 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 // a single chart. For example, create a clustered column - line chart with
......
...@@ -342,10 +342,8 @@ func TestReadBytes(t *testing.T) { ...@@ -342,10 +342,8 @@ func TestReadBytes(t *testing.T) {
} }
func TestUnzipToTemp(t *testing.T) { func TestUnzipToTemp(t *testing.T) {
for _, v := range []string{"go1.19", "go1.20"} { if ver := runtime.Version(); strings.HasPrefix(ver, "go1.19") || strings.HasPrefix(ver, "go1.2") {
if strings.HasPrefix(runtime.Version(), v) { t.Skip()
t.Skip()
}
} }
os.Setenv("TMPDIR", "test") os.Setenv("TMPDIR", "test")
defer os.Unsetenv("TMPDIR") defer os.Unsetenv("TMPDIR")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册