Skip to content

Commit

Permalink
Maybe fix 'scanline size' error and add "CreationOptions + ErrLogger"…
Browse files Browse the repository at this point in the history
… case in `TestViewshedCreationOptions`
  • Loading branch information
pericles-tpt committed Jan 28, 2025
1 parent 82f2df3 commit 14c242c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions godal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4577,7 +4577,7 @@ func TestViewshedCreationOptions(t *testing.T) {
tmpname = tempfile()
)
defer os.Remove(tmpname)
vrtDs, err := Create(driver, tmpname, 1, Int8, 16, 16)
vrtDs, err := Create(driver, tmpname, 1, Int8, 20, 20)
if err != nil {
t.Error(err)
return
Expand All @@ -4589,7 +4589,12 @@ func TestViewshedCreationOptions(t *testing.T) {
return
}

// Invalid
// Invalid - with error logger
ehc := eh()
_, err = Viewshed(vrtDs.Bands()[0], &driver, "none", 2, 2, 0, 0, 255, 0, 0, -1, 0, MEdge, 0, Normal, CreationOption("INVALID_OPT=BAR"), ErrLogger(ehc.ErrorHandler))
assert.Error(t, err)

// Invalid - no error logger
_, err = Viewshed(vrtDs.Bands()[0], &driver, "none", 2, 2, 0, 0, 255, 0, 0, -1, 0, MEdge, 0, Normal, CreationOption("INVALID_OPT=BAR"))
assert.Error(t, err)

Expand Down

0 comments on commit 14c242c

Please sign in to comment.