mirror of
https://github.com/TomWright/dasel.git
synced 2022-05-22 02:32:45 +03:00
15 lines
246 B
Go
15 lines
246 B
Go
package dasel
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func TestSafeIsNil(t *testing.T) {
|
|
t.Run("String", func(t *testing.T) {
|
|
if exp, got := false, safeIsNil(reflect.ValueOf("")); exp != got {
|
|
t.Errorf("expected %v, got %v", exp, got)
|
|
}
|
|
})
|
|
}
|