func RequireChdir(t *testing.T, dir string) func() {
	wd, err := os.Getwd()
	require.NoError(t, err)
	if err = os.Chdir(dir); err != nil {
		require.NoError(t, err)
	}
	return func() {
		require.NoError(t, os.Chdir(wd))
	}
}
RequireChdir changes the working directory reverts it on the returned function
package morerequire
import (
	"os"
	"testing"
	"time"
	"github.com/stretchr/testify/require"
)
func RequireSetMtime(t *testing.T, dir, date string) {
	td, err := time.ParseInLocation("2006-01-02", date, time.Local)
	require.NoError(t, err)
	require.NoError(t, os.Chtimes(dir, td, td))
}