Skip to content
Snippets Groups Projects
Commit dfa1f983 authored by Erick Hitter's avatar Erick Hitter
Browse files

Introduce a unit test

parent fb232095
No related branches found
No related tags found
1 merge request!4Better CI
Pipeline #155 failed
package main
import "testing"
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")
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment