Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

548 B
Raw Blame
//go:build linux

package fuse

import "testing"

func TestMountedAt(t *testing.T) {
	for _, p := range []string{"/proc", "/proc/"} {
		if !mountedAt(p) {
			t.Errorf("mountedAt(%q) = false, want true", p)
		}
	}
	plain := t.TempDir()
	for _, p := range []string{plain, plain + "/"} {
		if mountedAt(p) {
			t.Errorf("mountedAt(%q) = true, want false", p)
		}
	}
}

func TestFuseFilesystem(t *testing.T) {
	for _, p := range []string{"/proc", t.TempDir()} {
		if fuseFilesystem(p) {
			t.Errorf("fuseFilesystem(%q) = true, want false", p)
		}
	}
}