github.com/jchengjr77/canaveral@v1.0.1-0.20200715160102-ea9245d1a2fb/gh/ghconstants_test.go (about) 1 package github 2 3 import "testing" 4 5 func TestLabel(t *testing.T) { 6 res := label 7 if res != "github credentials" { 8 t.Errorf("label is %s --> should be 'github credentials'", res) 9 } 10 } 11 12 func TestUrl(t *testing.T) { 13 res := url 14 if res != "https://api.github.com" { 15 t.Errorf("url is %s --> should be 'https://api.github.com'", res) 16 } 17 }