diff --git a/LICENSE b/LICENSE index 81abd76..00c92ff 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright 2020 Andreas Geiß +Copyright 2022 Andreas Geiß Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/device/controller_test.go b/device/controller_test.go index 848f36f..d649564 100644 --- a/device/controller_test.go +++ b/device/controller_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/andygeiss/esp32/device" - "github.com/andygeiss/esp32/pkg/assert" + "github.com/andygeiss/utils/assert" ) func TestControllerSetupErrorShouldBeNil(t *testing.T) { diff --git a/examples/first/controller_test.go b/examples/first/controller_test.go index 7a0e00e..6df8585 100644 --- a/examples/first/controller_test.go +++ b/examples/first/controller_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/andygeiss/esp32/device" - "github.com/andygeiss/esp32/pkg/assert" + "github.com/andygeiss/utils/assert" ) func TestControllerSetupErrorShouldBeNil(t *testing.T) { diff --git a/go.mod b/go.mod index 955c481..f778d5c 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ module github.com/andygeiss/esp32 -go 1.14 +go 1.18 require ( - github.com/andygeiss/assert v0.0.9 - github.com/andygeiss/esp32-controller v0.0.3 + github.com/andygeiss/esp32-controller v0.1.0 + github.com/andygeiss/utils v0.1.1 ) diff --git a/go.sum b/go.sum index 0a21f31..70ee617 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,4 @@ -github.com/andygeiss/assert v0.0.9 h1:ZITUqQiyeBo7hXROIb50vKV2jeSAy/R9CD9UkxxS3w4= -github.com/andygeiss/assert v0.0.9/go.mod h1:fCwXr8GkRVuJWDwiCS73+NTcHXyhQSx4uqV/0Fl5T3g= -github.com/andygeiss/esp32-controller v0.0.3 h1:lZzscKooFVp8S/hO9optF32wHgVXM0w5gci1WkIQMLw= -github.com/andygeiss/esp32-controller v0.0.3/go.mod h1:L3NzO1fgbAIMtTM3IWDhu2pC3tqBudgZKeajZhmOoCk= +github.com/andygeiss/esp32-controller v0.1.0 h1:o+SaEmOA3Sh3Qhxf7xqUpouE9Y39AneYEYrjdP6twAI= +github.com/andygeiss/esp32-controller v0.1.0/go.mod h1:5bEu/i+U9pklziFmp1rJ8ijpz43Gzyz3jmL8+UrI+ys= +github.com/andygeiss/utils v0.1.1 h1:+mUz6cqZRyNRJGKdMkA45g9wc5ijWtaDQTl8cw2CaG4= +github.com/andygeiss/utils v0.1.1/go.mod h1:6GobpffB2ogOr4AmqQZhYFyNkvWlSVKzWTN1wIDvUTc= diff --git a/pkg/assert/assert.go b/pkg/assert/assert.go deleted file mode 100644 index d0e4363..0000000 --- a/pkg/assert/assert.go +++ /dev/null @@ -1,15 +0,0 @@ -package assert - -import ( - "fmt" - "testing" -) - -// That ... -func That(desc string, t *testing.T, got interface{}, exp interface{}) { - t.Run(desc, func(t *testing.T) { - if fmt.Sprintf("%v", exp) != fmt.Sprintf("%v", got) { - t.Errorf("expected [%v] but got [%v]", exp, got) - } - }) -}