• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mlange-42 / arche-pixel / 6787797515

07 Nov 2023 04:59PM CUT coverage: 83.59%. First build
6787797515

push

github

web-flow
CI tests, 2nd attempt (#45)

* Destroy window on UI finalization
* Enable full tests with window creation using `xvfb`
* Add coverage report and badge

Commits:
* run tests with xvfb
* destroy the window on finalization
* add TestMain to run all tests on the main thread
* enable window creation in all tests
* add coveralls step to CI tests
* add coveralls badge, update changelog

3 of 3 new or added lines in 1 file covered. (100.0%)

1355 of 1621 relevant lines covered (83.59%)

164130.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/window/run.go
1
package window
2

3
import (
4
        "github.com/gopxl/pixel/v2/backends/opengl"
5
        "github.com/mlange-42/arche-model/model"
6
)
7

8
// Run is essential to run simulations that feature arche-pixel UI components.
9
// Call this function from the main function of your application, with a Model as argument.
10
// This is necessary, so that Model.Run runs on the main thread.
11
func Run(model *model.Model) {
×
12
        opengl.Run(model.Run)
×
13
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc