@@ -23,8 +23,8 @@ import (
2323 "github.com/google/go-cmp/cmp"
2424 "github.com/googleapis/librarian/internal/config"
2525 "github.com/googleapis/librarian/internal/sidekick/api"
26- sidekickconfig "github.com/googleapis/librarian/internal/sidekick/config"
2726 "github.com/googleapis/librarian/internal/sidekick/parser"
27+ "github.com/googleapis/librarian/internal/sources"
2828)
2929
3030func TestBuildCodec (t * testing.T ) {
@@ -312,8 +312,8 @@ func TestToModelConfig(t *testing.T) {
312312 want : & parser.ModelConfig {
313313 SpecificationFormat : config .SpecProtobuf ,
314314 SpecificationSource : "google/cloud/functions/v2" ,
315- Source : sidekickconfig .SourceConfig {
316- Sources : sidekickconfig .Sources {
315+ Source : & sources .SourceConfig {
316+ Sources : & sources .Sources {
317317 Googleapis : googleapisDir ,
318318 },
319319 ActiveRoots : []string {"googleapis" },
@@ -334,8 +334,8 @@ func TestToModelConfig(t *testing.T) {
334334 want : & parser.ModelConfig {
335335 SpecificationFormat : config .SpecProtobuf ,
336336 SpecificationSource : "google/cloud/functions/v2" ,
337- Source : sidekickconfig .SourceConfig {
338- Sources : sidekickconfig .Sources {
337+ Source : & sources .SourceConfig {
338+ Sources : & sources .Sources {
339339 Googleapis : googleapisDir ,
340340 },
341341 ActiveRoots : []string {"googleapis" },
@@ -360,8 +360,8 @@ func TestToModelConfig(t *testing.T) {
360360 want : & parser.ModelConfig {
361361 SpecificationFormat : config .SpecProtobuf ,
362362 SpecificationSource : "google/cloud/functions/v2" ,
363- Source : sidekickconfig .SourceConfig {
364- Sources : sidekickconfig .Sources {
363+ Source : & sources .SourceConfig {
364+ Sources : & sources .Sources {
365365 Googleapis : googleapisDir ,
366366 },
367367 ActiveRoots : []string {"googleapis" },
@@ -406,8 +406,8 @@ func TestToModelConfig(t *testing.T) {
406406 want : & parser.ModelConfig {
407407 SpecificationFormat : config .SpecProtobuf ,
408408 SpecificationSource : "google/cloud/functions/v2" ,
409- Source : sidekickconfig .SourceConfig {
410- Sources : sidekickconfig .Sources {
409+ Source : & sources .SourceConfig {
410+ Sources : & sources .Sources {
411411 Googleapis : googleapisDir ,
412412 },
413413 ActiveRoots : []string {"googleapis" },
@@ -445,8 +445,8 @@ func TestToModelConfig(t *testing.T) {
445445 want : & parser.ModelConfig {
446446 SpecificationFormat : config .SpecProtobuf ,
447447 SpecificationSource : "google/cloud/functions/v2" ,
448- Source : sidekickconfig .SourceConfig {
449- Sources : sidekickconfig .Sources {
448+ Source : & sources .SourceConfig {
449+ Sources : & sources .Sources {
450450 Googleapis : googleapisDir ,
451451 },
452452 ActiveRoots : []string {"googleapis" },
@@ -469,8 +469,8 @@ func TestToModelConfig(t *testing.T) {
469469 want : & parser.ModelConfig {
470470 SpecificationFormat : config .SpecProtobuf ,
471471 SpecificationSource : "google/cloud/functions/v2" ,
472- Source : sidekickconfig .SourceConfig {
473- Sources : sidekickconfig .Sources {
472+ Source : & sources .SourceConfig {
473+ Sources : & sources .Sources {
474474 Googleapis : googleapisDir ,
475475 },
476476 ActiveRoots : []string {"googleapis" },
@@ -492,8 +492,8 @@ func TestToModelConfig(t *testing.T) {
492492 SpecificationFormat : config .SpecProtobuf ,
493493 SpecificationSource : "schema/google/showcase/v1beta1" ,
494494 ServiceConfig : "schema/google/showcase/v1beta1/showcase_v1beta1.yaml" ,
495- Source : sidekickconfig .SourceConfig {
496- Sources : sidekickconfig .Sources {
495+ Source : & sources .SourceConfig {
496+ Sources : & sources .Sources {
497497 Googleapis : googleapisDir ,
498498 Showcase : showcaseDir ,
499499 },
@@ -517,8 +517,8 @@ func TestToModelConfig(t *testing.T) {
517517 want : & parser.ModelConfig {
518518 SpecificationFormat : config .SpecProtobuf ,
519519 SpecificationSource : "google/cloud/functions/v2" ,
520- Source : sidekickconfig .SourceConfig {
521- Sources : sidekickconfig .Sources {
520+ Source : & sources .SourceConfig {
521+ Sources : & sources .Sources {
522522 Googleapis : googleapisDir ,
523523 },
524524 ActiveRoots : []string {"googleapis" , "extra-root" },
@@ -540,7 +540,7 @@ func TestToModelConfig(t *testing.T) {
540540 },
541541 } {
542542 t .Run (test .name , func (t * testing.T ) {
543- sources := & sidekickconfig .Sources {
543+ sources := & sources .Sources {
544544 Googleapis : test .googleapisDir ,
545545 }
546546 if test .showcaseDir != "" {
0 commit comments