(t *testing.T)
| 128 | } |
| 129 | |
| 130 | func TestGetType(t *testing.T) { |
| 131 | type Foo struct{ X int } |
| 132 | f := &Foo{} |
| 133 | if got := GetType(f); got.Name() != "Foo" { |
| 134 | t.Fatalf("GetType = %s, want Foo", got.Name()) |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | func TestCreateDirectory(t *testing.T) { |
| 139 | dir := t.TempDir() + "/testdir" |