mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Unexport test.NewField
This commit is contained in:
parent
8e026493a4
commit
17d212444c
1 changed files with 3 additions and 3 deletions
|
|
@ -27,8 +27,8 @@ type Field struct {
|
|||
*pilosa.Field
|
||||
}
|
||||
|
||||
// NewField returns a new instance of Field d/0.
|
||||
func NewField(opts pilosa.FieldOption) *Field {
|
||||
// newField returns a new instance of Field d/0.
|
||||
func newField(opts pilosa.FieldOption) *Field {
|
||||
path, err := ioutil.TempDir("", "pilosa-field-")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
@ -42,7 +42,7 @@ func NewField(opts pilosa.FieldOption) *Field {
|
|||
|
||||
// mustOpenField returns a new, opened field at a temporary path. Panic on error.
|
||||
func mustOpenField(opts pilosa.FieldOption) *Field {
|
||||
f := NewField(opts)
|
||||
f := newField(opts)
|
||||
if err := f.Open(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue