test for plugin path builder
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package plugins
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestExecutablePathBuilder(t *testing.T) {
|
||||
|
||||
have := buildExecutablePath("/var/grafana/plugins/grafana-simple-json-datasource", "simple-json", "linux", "amd64")
|
||||
want := `/var/grafana/plugins/grafana-simple-json-datasource/simple-json_linux_amd64`
|
||||
if have != want {
|
||||
t.Errorf("expected %s got %s", want, have)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user