tester

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 9 Imported by: 0

README

tester

Test PeterLemon/SNES

> go run ./tester/PeterLemon

Documentation

Index

Constants

View Source
const (
	OK = "✅"
	NG = "❌"
)

Variables

This section is empty.

Functions

func CompareBlack

func CompareBlack(actual, expected color.Color) bool

画像の黒部分(#000000)の座標が全て一致するかチェック

func CompareImage

func CompareImage(actual []iro.RGB555, expected image.Image, w, h int, fn func(actual, expected color.Color) bool) error

func CompareWhite

func CompareWhite(actual, expected color.Color) bool

画像の白部分(#E0E0E0より明るい)の座標が全て一致するかチェック

func IsExpectedScreen

func IsExpectedScreen(rom, imgpath string, n int, compare func(actual color.Color, expected color.Color) bool) error

nフレームだけエミュレーションした後の画面がimgpathの画像と比較して一致するかチェックする

func SFC

func SFC(romData []byte) core.SuperFamicom

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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