- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestUnaddressableField (0.16 sec)
-
src/internal/reflectlite/all_test.go
t.Errorf("%v Name()=%q, want %q", typ, got, test.want) } } } // TestUnaddressableField tests that the reflect package will not allow // a type from another package to be used as a named type with an // unexported field. // // This ensures that unexported fields cannot be modified by other packages. func TestUnaddressableField(t *testing.T) { var b Buffer // type defined in reflect, a different package
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:26:08 UTC 2023 - 24.2K bytes - Viewed (0) -
src/reflect/all_test.go
} } } // TestUnaddressableField tests that the reflect package will not allow // a type from another package to be used as a named type with an // unexported field. // // This ensures that unexported fields cannot be modified by other packages. func TestUnaddressableField(t *testing.T) { var b Buffer // type defined in reflect, a different package
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)