@@ -2386,34 +2386,6 @@ func TestLoaderArtifactKeyExternalWithoutExportChangesWhenSourceChanges(t *testi
23862386 }
23872387}
23882388
2389- func TestArtifactPolicyLocalReadOnlyNeedsSemanticForWirePackages (t * testing.T ) {
2390- t .Parallel ()
2391-
2392- loader := & customTypedGraphLoader {
2393- env : []string {"WIRE_LOADER_ARTIFACTS=1" },
2394- localSemanticOK : map [string ]bool {"example.com/app" : false },
2395- }
2396-
2397- nonWireMeta := & packageMeta {
2398- ImportPath : "example.com/app" ,
2399- Imports : []string {"fmt" , "example.com/dep" },
2400- }
2401- wireMeta := & packageMeta {
2402- ImportPath : "example.com/app" ,
2403- Imports : []string {"github.com/goforj/wire" },
2404- }
2405-
2406- if got := loader .artifactPolicy (nonWireMeta , false , true ); ! got .read || ! got .write {
2407- t .Fatalf ("artifactPolicy(non-wire local) = %+v, want read+write" , got )
2408- }
2409- if got := loader .artifactPolicy (wireMeta , false , true ); got .read || ! got .write {
2410- t .Fatalf ("artifactPolicy(wire local without semantic support) = %+v, want write-only" , got )
2411- }
2412- if got := loader .artifactPolicy (wireMeta , false , false ); ! got .read || ! got .write {
2413- t .Fatalf ("artifactPolicy(wire external) = %+v, want read+write" , got )
2414- }
2415- }
2416-
24172389func TestRunGoListIncludesExportDataForReplacedModule (t * testing.T ) {
24182390 root := t .TempDir ()
24192391 depRoot := filepath .Join (root , "depmod" )
0 commit comments