File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,9 +85,9 @@ func TestFormatHypervisor(t *testing.T) {
8585 }
8686}
8787
88- func TestParseMetadataFilters (t * testing.T ) {
88+ func TestParseKeyValueSpecs (t * testing.T ) {
8989 t .Run ("parses valid entries" , func (t * testing.T ) {
90- metadata , malformed := parseMetadataFilters ([]string {
90+ values , malformed := parseKeyValueSpecs ([]string {
9191 "team=backend" ,
9292 "env=staging" ,
9393 })
@@ -96,11 +96,11 @@ func TestParseMetadataFilters(t *testing.T) {
9696 assert .Equal (t , map [string ]string {
9797 "team" : "backend" ,
9898 "env" : "staging" ,
99- }, metadata )
99+ }, values )
100100 })
101101
102- t .Run ("returns malformed entries and only valid metadata " , func (t * testing.T ) {
103- metadata , malformed := parseMetadataFilters ([]string {
102+ t .Run ("returns malformed entries and only valid values " , func (t * testing.T ) {
103+ values , malformed := parseKeyValueSpecs ([]string {
104104 "team=backend" ,
105105 "missing-delimiter" ,
106106 "=empty-key" ,
@@ -110,7 +110,7 @@ func TestParseMetadataFilters(t *testing.T) {
110110 assert .Equal (t , map [string ]string {
111111 "team" : "backend" ,
112112 "region" : "us-east-1" ,
113- }, metadata )
113+ }, values )
114114 assert .Equal (t , []string {
115115 "missing-delimiter" ,
116116 "=empty-key" ,
You can’t perform that action at this time.
0 commit comments