mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
empty backend type
This commit is contained in:
parent
65767fc061
commit
e69d5b7615
2 changed files with 3 additions and 6 deletions
|
@ -50,12 +50,12 @@ func TestBackendType(t *testing.T) {
|
|||
var bt backend.Type
|
||||
|
||||
bt = BackendType("/")
|
||||
if !bt.IsNull() {
|
||||
if bt != "" {
|
||||
t.Error("backend type should be nil")
|
||||
}
|
||||
|
||||
bt = BackendType("/test")
|
||||
if !bt.IsNull() {
|
||||
if bt != "" {
|
||||
t.Error("backend type should be nil")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue