glrdomon_test.go 357 Bytes
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1 2 3
package main

import "testing"
Erick Hitter's avatar
Erick Hitter committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

func TestValidatePath(t *testing.T) {
	emptyString := ""
	notValid := validatePath(&emptyString)

	if notValid == true {
		t.Error("Empty path shouldn't validate")
	}

	sampleConfig := "./config-sample.json"
	valid := validatePath(&sampleConfig)

	if valid != true {
		t.Error("Couldn't validate path to sample config")
	}
}