Skip to content

Commit

Permalink
add nopcloser and readall to tests/imports.go
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Nov 7, 2023
1 parent d6f29c0 commit e83663c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnovm/tests/imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,9 @@ func TestStore(rootDir, filesPath string, stdin io.Reader, stdout, stderr io.Wri
case "io":
pkg := gno.NewPackageNode("io", pkgPath, nil)
pkg.DefineGoNativeValue("EOF", io.EOF)
pkg.DefineGoNativeValue("NopCloser", io.NopCloser)
pkg.DefineGoNativeValue("ReadFull", io.ReadFull)
pkg.DefineGoNativeValue("ReadAll", io.ReadAll)
pkg.DefineGoNativeType(reflect.TypeOf((*io.ReadCloser)(nil)).Elem())
pkg.DefineGoNativeType(reflect.TypeOf((*io.Closer)(nil)).Elem())
pkg.DefineGoNativeType(reflect.TypeOf((*io.Reader)(nil)).Elem())
Expand Down

0 comments on commit e83663c

Please sign in to comment.