github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/libkb/env_windows_test.go (about)

     1  // Copyright 2015 Keybase, Inc. All rights reserved. Use of
     2  // this source code is governed by the included BSD license.
     3  
     4  //go:build windows
     5  // +build windows
     6  
     7  package libkb
     8  
     9  import (
    10  	"testing"
    11  )
    12  
    13  func TestEnvWindows(t *testing.T) {
    14  	env := newEnv(nil, nil, "windows", makeLogGetter(t))
    15  
    16  	mountDir, err := env.GetMountDir()
    17  	if err != nil {
    18  		t.Fatal(err)
    19  	}
    20  
    21  	if mountDir != "" {
    22  		t.Fatalf("Windows needs an empty default mount dir")
    23  	}
    24  }