Made unit tests compatibility with the next Go language version

- Fix documents issues for the `AddChart` function
- Update GitHub sponsor profile
This commit is contained in:
xuri 2023-06-30 05:02:18 +00:00 committed by GitHub
parent f8aa3adf7e
commit dcb26b2cb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 9 deletions

3
.github/FUNDING.yml vendored
View File

@ -1,5 +1,6 @@
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

View File

@ -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

View File

@ -342,11 +342,9 @@ 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")
assert.NoError(t, os.Chmod(os.TempDir(), 0o444)) assert.NoError(t, os.Chmod(os.TempDir(), 0o444))