Commit f5d7eae9 authored by Matteo Suppo's avatar Matteo Suppo

Stub new function configs.Navigate

This function will navigate the filesystem scraping the fs
searching for config files. It will search in $pwd navigating
through parent folders stopping at $root
parent 7112bc2a
package configs
func Navigate(root, pwd string) Configuration {
return Configuration{}
}
package configs_test
import (
"reflect"
"testing"
)
func TestNavigate(t *testing.T) {
type args struct {
root string
pwd string
}
tests := []struct {
name string
args args
want Configuration
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := Navigate(tt.args.root, tt.args.pwd); !reflect.DeepEqual(got, tt.want) {
t.Errorf("Navigate() = %v, want %v", got, tt.want)
}
})
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment