From 530aec1e163ff6d4ec9e10c0462d5e61a91c9be3 Mon Sep 17 00:00:00 2001 From: Patrick O'brien Date: Fri, 2 Sep 2016 11:10:00 +1000 Subject: [PATCH] Remove pointers to L, not needed --- boil/reflect_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/boil/reflect_test.go b/boil/reflect_test.go index bce4585..f8e7c1d 100644 --- a/boil/reflect_test.go +++ b/boil/reflect_test.go @@ -288,7 +288,7 @@ type testLStruct struct { type testNestedStruct struct { ID int R *testNestedRStruct - L *testNestedLStruct + L testNestedLStruct } type testNestedRStruct struct { ToEagerLoad *testNestedStruct @@ -299,7 +299,7 @@ type testNestedLStruct struct { type testNestedSlice struct { ID int R *testNestedRSlice - L *testNestedLSlice + L testNestedLSlice } type testNestedRSlice struct { ToEagerLoad []*testNestedSlice @@ -307,12 +307,12 @@ type testNestedRSlice struct { type testNestedLSlice struct { } -func (r *testLStruct) LoadTestOne(exec Executor, singular bool, obj interface{}) error { +func (testLStruct) LoadTestOne(exec Executor, singular bool, obj interface{}) error { loadFunctionCalled = true return nil } -func (r *testNestedLStruct) LoadToEagerLoad(exec Executor, singular bool, obj interface{}) error { +func (testNestedLStruct) LoadToEagerLoad(exec Executor, singular bool, obj interface{}) error { switch x := obj.(type) { case *testNestedStruct: x.R = &testNestedRStruct{ @@ -329,7 +329,7 @@ func (r *testNestedLStruct) LoadToEagerLoad(exec Executor, singular bool, obj in return nil } -func (r *testNestedLSlice) LoadToEagerLoad(exec Executor, singular bool, obj interface{}) error { +func (testNestedLSlice) LoadToEagerLoad(exec Executor, singular bool, obj interface{}) error { switch x := obj.(type) { case *testNestedSlice: @@ -354,7 +354,7 @@ func TestLoadRelationshipsSlice(t *testing.T) { testSlice := []*struct { ID int R *testRStruct - L *testLStruct + L testLStruct }{} if err := loadRelationships(nil, []string{"TestOne"}, &testSlice, false); err != nil { @@ -373,7 +373,7 @@ func TestLoadRelationshipsSingular(t *testing.T) { testSingular := struct { ID int R *testRStruct - L *testLStruct + L testLStruct }{} if err := loadRelationships(nil, []string{"TestOne"}, &testSingular, true); err != nil {