Skip to content

Commit

Permalink
feat: add ut
Browse files Browse the repository at this point in the history
  • Loading branch information
l0rem1psum committed Nov 5, 2024
1 parent c7f3974 commit 01849a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codec_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package astiav

import (
"testing"
"unsafe"

"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -40,6 +41,7 @@ func TestCodecContext(t *testing.T) {
require.Equal(t, 1, cc1.ThreadCount())
require.Equal(t, ThreadType(3), cc1.ThreadType())
require.Equal(t, 320, cc1.Width())
require.Equal(t, unsafe.Pointer(cc1.c), cc1.UnsafePointer())
cl := cc1.Class()
require.NotNil(t, cl)
require.Equal(t, "AVCodecContext", cl.Name())
Expand Down

0 comments on commit 01849a1

Please sign in to comment.