OpenIOContextWithDictionary (#116)

* OpenIOContextWithDictionary

* OpenIOContext

* OpenIOContext

* IOInterrupterCB

* OpenIOContext(filename string, flags IOContextFlags, ii *IOInterrupter, d *Dictionary)
This commit is contained in:
oldma3095
2024-12-12 22:26:30 +08:00
committed by GitHub
parent 1f47f2ed3e
commit f8f8f0e7ee
6 changed files with 17 additions and 9 deletions

View File

@@ -56,7 +56,7 @@ func TestIOContext(t *testing.T) {
func TestOpenIOContext(t *testing.T) {
path := filepath.Join(t.TempDir(), "iocontext.txt")
c, err := OpenIOContext(path, NewIOContextFlags(IOContextFlagWrite))
c, err := OpenIOContext(path, NewIOContextFlags(IOContextFlagWrite), nil, nil)
require.NoError(t, err)
cl := c.Class()
require.NotNil(t, cl)