| 1 | package testutilscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/internal/testutil`/ |
| 2 | |
| 3 | import ( |
| 4 | "ioscip-go gomod github.com/golang/go/src go1.25.0 io/" |
| 5 | "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/" |
| 6 | |
| 7 | "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/" |
| 8 | ) |
| 9 | |
| 10 | func TestEagerEOFByteReaderReturnsEOFWithFinalByteReadscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/internal/testutil`/TestEagerEOFByteReaderReturnsEOFWithFinalByteRead().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 11 | buf := []byte{0x1} |
| 12 | bufSize := len(buf) |
| 13 | |
| 14 | r := NewEagerEOFByteReaderscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/internal/testutil`/NewEagerEOFByteReader().(buf) |
| 15 | |
| 16 | p := make([]byte, bufSize+1) |
| 17 | |
| 18 | n, err := r.Readscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/internal/testutil`/EagerEOFByteReader#Read().(p) |
| 19 | |
| 20 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, bufSize, n) |
| 21 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, ioscip-go gomod github.com/golang/go/src go1.25.0 io/.EOFscip-go gomod github.com/golang/go/src go1.25.0 io/EOF., err) |
| 22 | } |
| 23 | |
| 24 | func TestDeferredEOFByteReaderReturnsEOFAfterFinalByteReadscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/internal/testutil`/TestDeferredEOFByteReaderReturnsEOFAfterFinalByteRead().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) { |
| 25 | buf := []byte{0x1} |
| 26 | bufSize := len(buf) |
| 27 | |
| 28 | r := NewDeferredEOFByteReaderscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/internal/testutil`/NewDeferredEOFByteReader().(buf) |
| 29 | |
| 30 | p := make([]byte, bufSize+1) |
| 31 | |
| 32 | n, err := r.Readscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/internal/testutil`/DeferredEOFByteReader#Read().(p) |
| 33 | |
| 34 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, bufSize, n) |
| 35 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Nilscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Nil().(t, err) |
| 36 | |
| 37 | n, err = r.Readscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/internal/testutil`/DeferredEOFByteReader#Read().(p) |
| 38 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Zeroscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Zero().(t, n) |
| 39 | assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, ioscip-go gomod github.com/golang/go/src go1.25.0 io/.EOFscip-go gomod github.com/golang/go/src go1.25.0 io/EOF., err) |
| 40 | } |