Skip to content

Commit

Permalink
config: go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Nov 3, 2023
1 parent dba38e0 commit 40698e4
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions config/cardpick_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"errors"
"strconv"
"testing"

"github.com/vinegarhq/vinegar/sysinfo"
)

func TestCard(t *testing.T) {
b := Binary{
ForcedGpu: "meow",
Env: Environment{},
Env: Environment{},
}
sysinfo.Cards = []sysinfo.Card{}

Expand All @@ -32,15 +33,15 @@ func TestCard(t *testing.T) {
func TestIntegratedCard(t *testing.T) {
b := Binary{
ForcedGpu: "integrated",
Env: Environment{},
Env: Environment{},
}
sysinfo.Cards = []sysinfo.Card{
{
Driver: "i915",
Driver: "i915",
Embedded: true,
},
{
Driver: "nvidia",
Driver: "nvidia",
Embedded: false,
},
}
Expand All @@ -61,15 +62,15 @@ func TestIntegratedCard(t *testing.T) {
func TestDiscreteCard(t *testing.T) {
b := Binary{
ForcedGpu: "prime-discrete",
Env: Environment{},
Env: Environment{},
}
sysinfo.Cards = []sysinfo.Card{
{
Driver: "i915",
Driver: "i915",
Embedded: true,
},
{
Driver: "nvidia",
Driver: "nvidia",
Embedded: false,
},
}
Expand All @@ -90,20 +91,20 @@ func TestDiscreteCard(t *testing.T) {
func TestVulkanCard(t *testing.T) {
b := Binary{
ForcedGpu: "prime-discrete",
Renderer: "OpenGL",
Env: Environment{},
Renderer: "OpenGL",
Env: Environment{},
}
sysinfo.Cards = []sysinfo.Card{
{
Driver: "i915",
Driver: "i915",
Embedded: true,
},
{
Driver: "nvidia",
Driver: "nvidia",
Embedded: false,
},
{
Driver: "radeon",
Driver: "radeon",
Embedded: false,
},
}
Expand Down

0 comments on commit 40698e4

Please sign in to comment.