Lite wallet server
https://hush.is
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
570 B
22 lines
570 B
// Copyright (c) 2019-2023 Duke Leto and The Hush developers
|
|
// Copyright (c) 2019-2020 The Zcash developers
|
|
// Distributed under the GPLv3 software license
|
|
package cmd
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestFileExists(t *testing.T) {
|
|
if fileExists("nonexistent-file") {
|
|
t.Fatal("fileExists unexpected success")
|
|
}
|
|
// If the path exists but is a directory, should return false
|
|
if fileExists(".") {
|
|
t.Fatal("fileExists unexpected success")
|
|
}
|
|
// The following file should exist, it's what's being tested
|
|
if !fileExists("root.go") {
|
|
t.Fatal("fileExists failed")
|
|
}
|
|
}
|
|
|