apptest

package
Version: v0.0.0-...-8578da9 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package apptest provides utilities for testing an app.

It is extremely incomplete, hence it being internal. For starters, it should support iOS.

Index

Constants

View Source
const Port = "12533"

Port is the TCP port used to communicate with the test app.

TODO(crawshaw): find a way to make this configurable. adb am extras?

Variables

This section is empty.

Functions

This section is empty.

Types

type Comm

type Comm struct {
	Conn   net.Conn
	Fatalf func(format string, args ...interface{})
	Printf func(format string, args ...interface{})
	// contains filtered or unexported fields
}

Comm is a simple text-based communication protocol.

Assumes all sides are friendly and cooperative and that the communication is over at the first sign of trouble.

func (*Comm) Recv

func (c *Comm) Recv(cmd string, a ...interface{})

func (*Comm) Send

func (c *Comm) Send(cmd string, args ...interface{})

Source Files

Jump to

Keyboard shortcuts

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