testpkg

package
v0.0.0-...-afa8a11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2015 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package testpkg contains bound functions for testing the cgo-JNI interface. This is used in tests of golang.org/x/mobile/bind/java.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(x, y int) int

func AppendToString

func AppendToString(str string, someBytes []byte) []byte

func BytesAppend

func BytesAppend(a []byte, b []byte) []byte

func CallE

func CallE(i I) error

func CallF

func CallF(i I)

func CallV

func CallV(i I) int

func CallVE

func CallVE(i I) (int, error)

func Err

func Err(s string) error

func GC

func GC()

func GarbageCollect

func GarbageCollect()

func Hello

func Hello(r Receiver, name string)

func Keep

func Keep(i I)

func Negate

func Negate(x bool) bool

func NumSCollected

func NumSCollected() int

func ReadAsset

func ReadAsset() string

func StrDup

func StrDup(s string) string

func UnnamedParams

func UnnamedParams(_, _ int, p0 string) int

Types

type I

type I interface {
	F()

	E() error
	V() int
	VE() (int, error)
	I() I
	S() *S
	StoString(*S) string

	String() string
}

func CallI

func CallI(i I) I

type Node

type Node struct {
	V    string
	Next *Node
	Err  error
}

func NewNode

func NewNode(name string) *Node

func (*Node) String

func (a *Node) String() string

type Receiver

type Receiver interface {
	Hello(message string)
}

type S

type S struct {
	// contains filtered or unexported fields
}

func CallS

func CallS(i I) *S

func New

func New() *S

func (*S) F

func (s *S) F()

func (*S) String

func (s *S) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL