This allows to install katenary with `go install` and to clean up the project folder.
15 lines
351 B
Go
15 lines
351 B
Go
package labelstructs
|
|
|
|
import "testing"
|
|
|
|
func TestDependenciesLabel(t *testing.T) {
|
|
ts := "- name: mongodb"
|
|
tc, _ := DependenciesFrom(ts)
|
|
if len(tc) != 1 {
|
|
t.Errorf("Expected DependenciesLabel to have 1 item, got %d", len(tc))
|
|
}
|
|
if tc[0].Name != "mongodb" {
|
|
t.Errorf("Expected DependenciesLabel to contain 'mongodb', got %s", tc[0].Name)
|
|
}
|
|
}
|