@@ -84,6 +84,13 @@ func TestFillDefaults(t *testing.T) {
8484 "package:one" : "^1.2.3" ,
8585 "package:two" : "^2.0.0" ,
8686 },
87+ Prefixes : map [string ]string {
88+ "prefix:google.logging.type" : "logging_type" ,
89+ },
90+ Protos : map [string ]string {
91+ "proto:google.api" : "package:google_cloud_api/api.dart" ,
92+ "proto:google.cloud.common" : "package:google_cloud_common/common.dart" ,
93+ },
8794 Version : "0.4.0" ,
8895 },
8996 },
@@ -96,6 +103,13 @@ func TestFillDefaults(t *testing.T) {
96103 Dependencies : "dep-1,dep-2" ,
97104 IssueTrackerURL : "https://issue-tracker-example/dart" ,
98105 Packages : map [string ]string {"package:one" : "^1.2.3" , "package:two" : "^2.0.0" },
106+ Prefixes : map [string ]string {
107+ "prefix:google.logging.type" : "logging_type" ,
108+ },
109+ Protos : map [string ]string {
110+ "proto:google.api" : "package:google_cloud_api/api.dart" ,
111+ "proto:google.cloud.common" : "package:google_cloud_common/common.dart" ,
112+ },
99113 },
100114 },
101115 },
@@ -110,6 +124,13 @@ func TestFillDefaults(t *testing.T) {
110124 "package:one" : "^1.2.3" ,
111125 "package:two" : "^2.0.0" ,
112126 },
127+ Prefixes : map [string ]string {
128+ "prefix:google.logging.type" : "logging_type" ,
129+ },
130+ Protos : map [string ]string {
131+ "proto:google.api" : "package:google_cloud_api/api.dart" ,
132+ "proto:google.cloud.common" : "package:google_cloud_common/common.dart" ,
133+ },
113134 Version : "0.4.0" ,
114135 },
115136 },
@@ -118,23 +139,39 @@ func TestFillDefaults(t *testing.T) {
118139 Version : "0.5.0" ,
119140 Dart : & config.DartPackage {
120141 APIKeysEnvironmentVariables : "apiKey-3,apiKey-4" ,
121- Dependencies : "dep-3,dep-4" ,
142+ Dependencies : "dep-1,dep- 3,dep-4" ,
122143 IssueTrackerURL : "https://another-issue-tracker-example/dart" ,
123144 Packages : map [string ]string {
124145 "package:three" : "^1.0.0" ,
125146 },
147+ Prefixes : map [string ]string {
148+ "prefix:google.logging.type" : "logging_type_v2" ,
149+ },
150+ Protos : map [string ]string {
151+ "proto:google.cloud.location" : "package:google_cloud_location/location.dart" ,
152+ },
126153 },
127154 },
128155 want : & config.Library {
129156 Output : "foo/" ,
130157 Version : "0.5.0" ,
131158 Dart : & config.DartPackage {
132159 APIKeysEnvironmentVariables : "apiKey-3,apiKey-4" ,
133- Dependencies : "dep-3,dep-4" ,
160+ Dependencies : "dep-1,dep- 3,dep-4,dep-2 " ,
134161 IssueTrackerURL : "https://another-issue-tracker-example/dart" ,
135162 Packages : map [string ]string {
163+ "package:one" : "^1.2.3" ,
164+ "package:two" : "^2.0.0" ,
136165 "package:three" : "^1.0.0" ,
137166 },
167+ Prefixes : map [string ]string {
168+ "prefix:google.logging.type" : "logging_type_v2" ,
169+ },
170+ Protos : map [string ]string {
171+ "proto:google.cloud.location" : "package:google_cloud_location/location.dart" ,
172+ "proto:google.api" : "package:google_cloud_api/api.dart" ,
173+ "proto:google.cloud.common" : "package:google_cloud_common/common.dart" ,
174+ },
138175 },
139176 },
140177 },
0 commit comments