@@ -13,7 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
13
See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
-
17
16
package sync
18
17
19
18
import (
@@ -748,42 +747,6 @@ func TestNewSyncItem(t *testing.T) {
748
747
Delete : nil ,
749
748
},
750
749
},
751
-
752
- // Infer with Ko
753
- {
754
- description : "infer: ko static assets" ,
755
- artifact : & latest.Artifact {
756
- ArtifactType : latest.ArtifactType {
757
- KoArtifact : & latest.KoArtifact {},
758
- },
759
- ImageName : "test" ,
760
- Sync : & latest.Sync {
761
- Infer : []string {"kodata/**/*" },
762
- },
763
- },
764
- builds : []graph.Artifact {{
765
- ImageName : "test" ,
766
- Tag : "test:123" ,
767
- }},
768
- evt : filemon.Events {
769
- Added : []string {filepath .Join ("kodata" , "foo" , "bar.html" )},
770
- Modified : []string {
771
- filepath .Join ("kodata" , "frob" , "baz.js" ),
772
- "main.go" ,
773
- },
774
- Deleted : []string {filepath .Join ("kodata" , "corge" , "grault.css" )},
775
- },
776
- expected : & Item {
777
- Image : "test:123" ,
778
- Copy : map [string ][]string {
779
- filepath .Join ("kodata" , "foo" , "bar.html" ): {"/var/run/ko/foo/bar.html" },
780
- filepath .Join ("kodata" , "frob" , "baz.js" ): {"/var/run/ko/frob/baz.js" },
781
- },
782
- Delete : map [string ][]string {
783
- filepath .Join ("kodata" , "corge" , "grault.css" ): {"/var/run/ko/corge/grault.css" },
784
- },
785
- },
786
- },
787
750
}
788
751
for _ , test := range tests {
789
752
testutil .Run (t , test .description , func (t * testutil.T ) {
0 commit comments