mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-05 17:05:51 +08:00
16 lines
326 B
Go
16 lines
326 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestPkgURL(t *testing.T) {
|
|
baseURL := "https://mdm.acme.co/repo"
|
|
pkgPath := "/Users/user/Desktop/dep_pkg-foo_1.1.pkg"
|
|
u := pkgURL(baseURL, pkgPath)
|
|
if have, want := u, "https://mdm.acme.co/repo/dep_pkg-foo_1.1.pkg"; have != want {
|
|
t.Errorf("have %s, want %s", have, want)
|
|
}
|
|
|
|
}
|