INNER CODE UNIT · Go

TestLicense

streamnative/function-mesh · license_test.go:78

func TestLicense(t *testing.T) {
	trackedFiles, trackedDirs := gitTrackedPaths()

	err := filepath.Walk(".", func(path string, fi os.FileInfo, err error) error {
		if skip[path] {
			return nil
		}

		if err != nil {
			return err
		}

		cleanPath := filepath.Clean(path)
		if fi.IsDir() {
			if cleanPath == "vendor" || cleanPath == ".git" {
				return filepath.SkipDir
			}
			if len(trackedDirs) > 0 && cleanPath != "." {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…