testpkg

package
v0.0.0-...-ba0a725 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2016 License: BSD-3-Clause Imports: 8 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

View Source
const (
	AString = "a string"
	AnInt   = 7
	ABool   = true
	AFloat  = 0.12345

	ALongString = "" /* 593-byte string literal not displayed */

	MinInt32               int32   = math.MinInt32
	MaxInt32               int32   = math.MaxInt32
	MinInt64                       = math.MinInt64
	MaxInt64                       = math.MaxInt64
	SmallestNonzeroFloat64         = math.SmallestNonzeroFloat64
	MaxFloat64                     = math.MaxFloat64
	SmallestNonzeroFloat32 float32 = math.SmallestNonzeroFloat64
	MaxFloat32             float32 = math.MaxFloat32
	Log2E                          = math.Log2E
)

Variables

View Source
var (
	StringVar    = "a string var"
	IntVar       = 77
	StructVar    = &S{name: "a struct var"}
	InterfaceVar I
)

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 CallWithCallback

func CallWithCallback(gcb GoCallback)

func CallWithNull

func CallWithNull(_null NullTest, nuller NullTest) bool

func Err

func Err(s string) error

func GC

func GC()

func GarbageCollect

func GarbageCollect()

func GoroutineCallback

func GoroutineCallback(r Receiver)

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 PassByteArray

func PassByteArray(b B)

func ReadAsset

func ReadAsset() string

func ReadIntoByteArray

func ReadIntoByteArray(s []byte) (int, error)

func StrDup

func StrDup(s string) string

func UnnamedParams

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

Types

type B

type B interface {
	B(b []byte)
}

type Concrete

type Concrete struct{}

func NewConcrete

func NewConcrete() *Concrete

func (*Concrete) F

func (_ *Concrete) F()

type GoCallback

type GoCallback interface {
	VarUpdate()
}

type I

type I interface {
	F()

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

	String() string
}

func CallI

func CallI(i I) I

func NewNullInterface

func NewNullInterface() I

type Interface

type Interface interface {
	F()
}

type Issue14168

type Issue14168 interface {
	F(seq int32)
}

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 NullTest

type NullTest interface {
	Null() NullTest
}

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 NewNullStruct

func NewNullStruct() *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