forked from p30928647/excelize
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:
parent
f8aa3adf7e
commit
dcb26b2cb8
|
@ -1,5 +1,6 @@
|
|||
patreon: xuri
|
||||
github: xuri
|
||||
open_collective: excelize
|
||||
patreon: xuri
|
||||
ko_fi: xurime
|
||||
liberapay: xuri
|
||||
issuehunt: xuri
|
||||
|
|
8
chart.go
8
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
|
||||
|
|
|
@ -342,11 +342,9 @@ func TestReadBytes(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestUnzipToTemp(t *testing.T) {
|
||||
for _, v := range []string{"go1.19", "go1.20"} {
|
||||
if strings.HasPrefix(runtime.Version(), v) {
|
||||
if ver := runtime.Version(); strings.HasPrefix(ver, "go1.19") || strings.HasPrefix(ver, "go1.2") {
|
||||
t.Skip()
|
||||
}
|
||||
}
|
||||
os.Setenv("TMPDIR", "test")
|
||||
defer os.Unsetenv("TMPDIR")
|
||||
assert.NoError(t, os.Chmod(os.TempDir(), 0o444))
|
||||
|
|
Loading…
Reference in New Issue