Skip to content

Commit 46a39b7

Browse files
committed
Merge branch '9-fix-go-templates' into 'dev'
Resolve "Fix go test" Closes #9 See merge request objectbox/objectbox-generator!9
2 parents 1cce63b + 39a69a4 commit 46a39b7

50 files changed

Lines changed: 110 additions & 55 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

internal/generator/go/templates/binding.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,8 @@ func (asyncBox *{{$entity.Name}}AsyncBox) Remove(object *{{$entity.Name}}) error
613613
// Query provides a way to search stored objects
614614
//
615615
// For example, you can find all {{$entity.Name}} which {{$entity.IdProperty.Meta.Name}} is either 42 or 47:
616-
// box.Query({{$entity.Name}}_.{{$entity.IdProperty.Meta.Name}}.In(42, 47)).Find()
616+
//
617+
// box.Query({{$entity.Name}}_.{{$entity.IdProperty.Meta.Name}}.In(42, 47)).Find()
617618
type {{$entity.Name}}Query struct {
618619
*objectbox.Query
619620
}

test/comparison/testdata/go/converters/runeid.obx.go.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ func (asyncBox *RuneIdEntityAsyncBox) Remove(object *RuneIdEntity) error {
307307
// Query provides a way to search stored objects
308308
//
309309
// For example, you can find all RuneIdEntity which Id is either 42 or 47:
310-
// box.Query(RuneIdEntity_.Id.In(42, 47)).Find()
310+
//
311+
// box.Query(RuneIdEntity_.Id.In(42, 47)).Find()
311312
type RuneIdEntityQuery struct {
312313
*objectbox.Query
313314
}

test/comparison/testdata/go/converters/stringid.obx.go.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ func (asyncBox *StringIdEntityAsyncBox) Remove(object *StringIdEntity) error {
307307
// Query provides a way to search stored objects
308308
//
309309
// For example, you can find all StringIdEntity which Id is either 42 or 47:
310-
// box.Query(StringIdEntity_.Id.In(42, 47)).Find()
310+
//
311+
// box.Query(StringIdEntity_.Id.In(42, 47)).Find()
311312
type StringIdEntityQuery struct {
312313
*objectbox.Query
313314
}

test/comparison/testdata/go/converters/time.obx.go.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ func (asyncBox *TimeEntityAsyncBox) Remove(object *TimeEntity) error {
323323
// Query provides a way to search stored objects
324324
//
325325
// For example, you can find all TimeEntity which Id is either 42 or 47:
326-
// box.Query(TimeEntity_.Id.In(42, 47)).Find()
326+
//
327+
// box.Query(TimeEntity_.Id.In(42, 47)).Find()
327328
type TimeEntityQuery struct {
328329
*objectbox.Query
329330
}

test/comparison/testdata/go/embedding/A.obx.go.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ func (asyncBox *AAsyncBox) Remove(object *A) error {
313313
// Query provides a way to search stored objects
314314
//
315315
// For example, you can find all A which Id is either 42 or 47:
316-
// box.Query(A_.Id.In(42, 47)).Find()
316+
//
317+
// box.Query(A_.Id.In(42, 47)).Find()
317318
type AQuery struct {
318319
*objectbox.Query
319320
}

test/comparison/testdata/go/embedding/B.obx.go.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ func (asyncBox *BAsyncBox) Remove(object *B) error {
341341
// Query provides a way to search stored objects
342342
//
343343
// For example, you can find all B which Id is either 42 or 47:
344-
// box.Query(B_.Id.In(42, 47)).Find()
344+
//
345+
// box.Query(B_.Id.In(42, 47)).Find()
345346
type BQuery struct {
346347
*objectbox.Query
347348
}

test/comparison/testdata/go/embedding/C.obx.go.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ func (asyncBox *CAsyncBox) Remove(object *C) error {
323323
// Query provides a way to search stored objects
324324
//
325325
// For example, you can find all C which Id is either 42 or 47:
326-
// box.Query(C_.Id.In(42, 47)).Find()
326+
//
327+
// box.Query(C_.Id.In(42, 47)).Find()
327328
type CQuery struct {
328329
*objectbox.Query
329330
}

test/comparison/testdata/go/embedding/D.obx.go.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ func (asyncBox *DAsyncBox) Remove(object *D) error {
314314
// Query provides a way to search stored objects
315315
//
316316
// For example, you can find all D which Id is either 42 or 47:
317-
// box.Query(D_.Id.In(42, 47)).Find()
317+
//
318+
// box.Query(D_.Id.In(42, 47)).Find()
318319
type DQuery struct {
319320
*objectbox.Query
320321
}

test/comparison/testdata/go/embedding/E.obx.go.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ func (asyncBox *EAsyncBox) Remove(object *E) error {
336336
// Query provides a way to search stored objects
337337
//
338338
// For example, you can find all E which id is either 42 or 47:
339-
// box.Query(E_.id.In(42, 47)).Find()
339+
//
340+
// box.Query(E_.id.In(42, 47)).Find()
340341
type EQuery struct {
341342
*objectbox.Query
342343
}

test/comparison/testdata/go/embedding/F.obx.go.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ func (asyncBox *FAsyncBox) Remove(object *F) error {
395395
// Query provides a way to search stored objects
396396
//
397397
// For example, you can find all F which id is either 42 or 47:
398-
// box.Query(F_.id.In(42, 47)).Find()
398+
//
399+
// box.Query(F_.id.In(42, 47)).Find()
399400
type FQuery struct {
400401
*objectbox.Query
401402
}

0 commit comments

Comments
 (0)