未验证 提交 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
patreon: xuri
ko_fi: xurime
liberapay: xuri
issuehunt: xuri
......
......@@ -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
......
......@@ -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")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册