package pkg_test import ( "testing" "hakurei.app/container/check" "hakurei.app/internal/pkg" ) func TestFile(t *testing.T) { t.Parallel() checkWithCache(t, []cacheTestCase{ {"file", nil, func(t *testing.T, base *check.Absolute, c *pkg.Cache) { c.SetStrict(true) cureMany(t, c, []cureStep{ {"short", pkg.NewFile("null", []byte{0}), base.Append( "identifier", "3376ALA7hIUm2LbzH2fDvRezgzod1eTK_G6XjyOgbM2u-6swvkFaF0BOwSl_juBi", ), pkg.MustDecode( "vsAhtPNo4waRNOASwrQwcIPTqb3SBuJOXw2G4T1mNmVZM-wrQTRllmgXqcIIoRcX", ), nil}, }) }, pkg.MustDecode( "iR6H5OIsyOW4EwEgtm9rGzGF6DVtyHLySEtwnFE8bnus9VJcoCbR4JIek7Lw-vwT", )}, }) }