github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/filesystem/mode_windows_test.go (about)

     1  package filesystem
     2  
     3  import (
     4  	"os"
     5  	"testing"
     6  )
     7  
     8  // TestPermissionModesMatchExpected verifies that the cross-platform permission
     9  // modes we define match their expected value on each platform. This should be
    10  // guaranteed by a combination of POSIX specifications (on POSIX systems) and
    11  // the Go os package implementation (on Windows).
    12  func TestModePermissionsMaskMatchesOS(t *testing.T) {
    13  	if ModePermissionsMask != Mode(os.ModePerm) {
    14  		t.Error("ModePermissionsMask does not match expected value")
    15  	}
    16  }