diff options
| author | Alex Flint <[email protected]> | 2021-01-31 19:20:28 -0800 |
|---|---|---|
| committer | Alex Flint <[email protected]> | 2021-01-31 19:20:28 -0800 |
| commit | 2a91531140cfb74c2fc889d80d4e0b50ea4906dd (patch) | |
| tree | 0d822d3d0962649bc6d9bb08575457dc513ef30f /reflect_test.go | |
| parent | 788c166025870bc4653adb5986d03f99c1d14af2 (diff) | |
| parent | 2a23168641ed1fb55f5f4dc72f50bdf15cb65b27 (diff) | |
Merge remote-tracking branch 'origin/master' into optional-long
Diffstat (limited to 'reflect_test.go')
| -rw-r--r-- | reflect_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/reflect_test.go b/reflect_test.go index 47e68b5..07b459c 100644 --- a/reflect_test.go +++ b/reflect_test.go @@ -53,3 +53,10 @@ func TestCanParseTextUnmarshaler(t *testing.T) { assertCanParse(t, reflect.TypeOf(su), true, false, true) assertCanParse(t, reflect.TypeOf(&su), true, false, true) } + +func TestIsExported(t *testing.T) { + assert.True(t, isExported("Exported")) + assert.False(t, isExported("notExported")) + assert.False(t, isExported("")) + assert.False(t, isExported(string([]byte{255}))) +} |
