mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
tests: Implemented more tests for fs-v1*.go (#2686)
This commit is contained in:
committed by
Harshavardhana
parent
7d37dea449
commit
b89a1cd482
@@ -30,6 +30,7 @@ import (
|
||||
"net/http/httptest"
|
||||
"net/url"
|
||||
"os"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strconv"
|
||||
@@ -127,6 +128,11 @@ func nextSuffix() string {
|
||||
return strconv.Itoa(int(1e9 + r%1e9))[1:]
|
||||
}
|
||||
|
||||
// isSameType - compares two object types via reflect.TypeOf
|
||||
func isSameType(obj1, obj2 interface{}) bool {
|
||||
return reflect.TypeOf(obj1) == reflect.TypeOf(obj2)
|
||||
}
|
||||
|
||||
// TestServer encapsulates an instantiation of a Minio instance with a temporary backend.
|
||||
// Example usage:
|
||||
// s := StartTestServer(t,"XL")
|
||||
|
||||
Reference in New Issue
Block a user