MCPcopy
hub / github.com/fogleman/nes / testRom

Function testRom

util/roms.go:14–26  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

12)
13
14func testRom(path string) (err error) {
15 defer func() {
16 if r := recover(); r != nil {
17 err = r.(error)
18 }
19 }()
20 console, err := nes.NewConsole(path)
21 if err != nil {
22 return err
23 }
24 console.StepSeconds(3)
25 return nil
26}
27
28func main() {
29 args := os.Args[1:]

Callers 1

mainFunction · 0.85

Calls 2

StepSecondsMethod · 0.95
NewConsoleFunction · 0.92

Tested by

no test coverage detected