mirror of
https://github.com/octoleo/restic.git
synced 2024-11-15 09:44:15 +00:00
17 lines
320 B
Go
17 lines
320 B
Go
|
package backend
|
||
|
|
||
|
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())
|
||
|
}
|
||
|
}
|