Skip to content

Commit

Permalink
improve GOOS=tamago test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
abarisani committed Sep 10, 2024
1 parent 816dbf8 commit 710888a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/encoding/gob/codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"math"
"math/rand"
"reflect"
"runtime"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -1566,6 +1567,10 @@ func testEncodeDecode(t *testing.T, in, out any) {
}

func TestLargeSlice(t *testing.T) {
if runtime.GOOS == "tamago" {
t.Skip("test requires significant memory")
}

t.Run("byte", func(t *testing.T) {
if unsafe.Sizeof(uintptr(0)) > 4 {
t.Parallel() // Only run in parallel in a large address space
Expand Down

0 comments on commit 710888a

Please sign in to comment.