22package crud
33
44import (
5- "testing"
65 "github.com/tarantool/go-option"
6+ "testing"
77)
88
99// TestOptionTypesCompilation проверяет что все типы option компилируются правильно
@@ -13,7 +13,7 @@ func TestOptionTypesCompilation(t *testing.T) {
1313 Timeout : option .SomeFloat64 (1.5 ),
1414 VshardRouter : option .SomeString ("router" ),
1515 }
16-
16+
1717 // Проверяем что Get() работает
1818 if timeout , exists := baseOpts .Timeout .Get (); ! exists || timeout != 1.5 {
1919 t .Errorf ("BaseOpts.Timeout.Get() failed" )
@@ -24,7 +24,7 @@ func TestOptionTypesCompilation(t *testing.T) {
2424 Timeout : option .SomeFloat64 (2.0 ),
2525 VshardRouter : option .SomeString ("router2" ),
2626 Fields : MakeOptAny ([]interface {}{"field1" , "field2" }),
27- BucketId : option .SomeUint (456 ), // Теперь это правильный тип
27+ BucketId : option .SomeUint (456 ), // Теперь это правильный тип
2828 FetchLatestMetadata : option .SomeBool (true ),
2929 Noreturn : option .SomeBool (false ),
3030 }
@@ -33,14 +33,14 @@ func TestOptionTypesCompilation(t *testing.T) {
3333 if bucket , exists := simpleOpts .BucketId .Get (); ! exists || bucket != 456 {
3434 t .Errorf ("BucketId.Get() failed: got %v, %v" , bucket , exists )
3535 }
36-
36+
3737 if fields , exists := simpleOpts .Fields .Get (); ! exists {
3838 t .Errorf ("Fields.Get() failed" )
3939 } else {
4040 t .Logf ("Fields: %v" , fields )
4141 }
4242
43- // Test OperationManyOpts
43+ // Test OperationManyOpts
4444 manyOpts := OperationManyOpts {
4545 Timeout : option .SomeFloat64 (3.0 ),
4646 StopOnError : option .SomeBool (true ),
@@ -103,4 +103,4 @@ func TestMakeOptAny(t *testing.T) {
103103 t .Logf ("Slice test passed: %v" , valSlice )
104104 }
105105 })
106- }
106+ }
0 commit comments