Documentation
¶
Overview ¶
Package mock contains testing mocks and other various utilities for testing code.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AZ26Decoder = func(code uint8) (rune, bool) { if code < 1 || code > 26 { return 0, false } return rune(64 + code), true }
View Source
var (
TestMemory *rcs.Memory
)
The FUSE tests want the full address space available. Creating memory is expensive and with the amount of tests to run it takes up to 12 seconds to complete. Instead, create memory once and zero out the backing slice each time.
Functions ¶
Types ¶
type CPU ¶
type CPU struct { A uint8 // sample register B uint8 // sample register Q bool // sample flag Z bool // sample flag // Offset to be added to the program counter to get the address of the // next instruction. OffsetPC int // contains filtered or unexported fields }
func (*CPU) NewDisassembler ¶
func (c *CPU) NewDisassembler() *rcs.Disassembler
type PanicWriter ¶
type PanicWriter struct {
// contains filtered or unexported fields
}
PanicWriter is a write that panics after the first newline has been written. Useful for tracking down where warnings are being emitted in the logger.
Click to show internal directories.
Click to hide internal directories.