restic/internal/id_int_test.go
Alexander Neumann 83d1a46526 Moves files
2017-07-23 14:19:13 +02:00

16 lines
319 B
Go

package restic
import "testing"
func TestIDMethods(t *testing.T) {
var id ID
if id.Str() != "[null]" {
t.Errorf("ID.Str() returned wrong value, want %v, got %v", "[null]", id.Str())
}
var pid *ID
if pid.Str() != "[nil]" {
t.Errorf("ID.Str() returned wrong value, want %v, got %v", "[nil]", pid.Str())
}
}