- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testHeaderMatchesReflect (0.17 sec)
-
src/internal/unsafeheader/unsafeheader_test.go
// package. func TestTypeMatchesReflectType(t *testing.T) { t.Run("Slice", func(t *testing.T) { testHeaderMatchesReflect(t, unsafeheader.Slice{}, reflect.SliceHeader{}) }) t.Run("String", func(t *testing.T) { testHeaderMatchesReflect(t, unsafeheader.String{}, reflect.StringHeader{}) }) } func testHeaderMatchesReflect(t *testing.T, header, reflectHeader any) { h := reflect.TypeOf(header) rh := reflect.TypeOf(reflectHeader)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 2.9K bytes - Viewed (0)