Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,124 for Nil (0.02 sec)

  1. internal/grid/types_test.go

    1. func TestMarshalUnmarshalMSSNil(t *testing.T) {
    2. v := MSS(nil)
    3. bts, err := v.MarshalMsg(nil)
    4. if err != nil {
    5. t.Fatal(err)
    6. }
    7. v2 := MSS(make(map[string]string, 1))
    8. left, err := v2.UnmarshalMsg(bts)
    9. if err != nil {
    10. t.Fatal(err)
    11. }
    12. if len(left) != 0 {
    13. t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    14. }
    15.  
    16. left, err = msgp.Skip(bts)
    17. if err != nil {
    18. t.Fatal(err)
    19. }
    20. if len(left) > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. cmd/object_api_suite_test.go

    1. err := obj.MakeBucket(context.Background(), "string", MakeBucketOptions{})
    2. if err != nil {
    3. t.Fatalf("%s: <ERROR> %s", instanceType, err)
    4. }
    5. err = obj.MakeBucket(context.Background(), "string", MakeBucketOptions{})
    6. if err == nil {
    7. t.Fatalf("%s: Expected error but found nil.", instanceType)
    8. }
    9.  
    10. if err.Error() != "Bucket exists: string" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 02 15:13:05 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  3. internal/event/target/nats.go

    1. if err != nil {
    2. return err
    3. }
    4.  
    5. if target.stanConn != nil {
    6. if target.args.Streaming.Async {
    7. _, err = target.stanConn.PublishAsync(target.args.Subject, data, nil)
    8. } else {
    9. err = target.stanConn.Publish(target.args.Subject, data)
    10. }
    11. } else {
    12. if target.jstream != nil {
    13. _, err = target.jstream.Publish(target.args.Subject, data)
    14. } else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. src/bufio/bufio_test.go

    1. {[]byte("012345678901234"), true, nil},
    2. {nil, false, nil},
    3. {[]byte("012345678901234"), true, nil},
    4. {nil, false, nil},
    5. {nil, false, io.EOF},
    6. }},
    7. {"0123456789012345\r012345678901234\r", []readLineResult{
    8. {[]byte("0123456789012345"), true, nil},
    9. {[]byte("\r012345678901234"), true, nil},
    10. {[]byte("\r"), false, nil},
    11. {nil, false, io.EOF},
    12. }},
    13. }
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  5. tests/associations_test.go

    1. Create(coupon).Error
    2. if err != nil {
    3. t.Errorf("Failed, got error: %v", err)
    4. }
    5.  
    6. if DB.First(&Coupon{}, "id = ?", coupon.ID).Error != nil {
    7. t.Errorf("Failed to query saved coupon")
    8. }
    9.  
    10. if DB.First(&CouponProduct{}, "coupon_id = ? AND product_id = ?", coupon.ID, "full-save-association-product1").Error != nil {
    11. t.Errorf("Failed to query saved association")
    12. }
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  6. docs/debugging/healing-bin/main.go

    1. }
    2. b, err := json.MarshalIndent(ht, "", " ")
    3. if err != nil {
    4. return err
    5. }
    6. fmt.Println(string(b))
    7. return nil
    8. }
    9. b, err := os.ReadFile(file)
    10. if err != nil {
    11. return err
    12. }
    13. buf := bytes.NewBuffer(nil)
    14. if _, err = msgp.CopyToJSON(buf, bytes.NewReader(b)); err != nil {
    15. return err
    16. }
    17. var htr map[string]interface{}
    18. dec := json.NewDecoder(buf)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  7. tests/create_test.go

    1. var result2 User
    2. DB.Preload(clause.Associations).First(&result2, user2.ID)
    3.  
    4. user2.Account = Account{}
    5. user2.Toys = nil
    6. user2.Manager = nil
    7. user2.Company = Company{}
    8. user2.Pets = nil
    9. user2.Team = nil
    10. user2.Languages = nil
    11. user2.Friends = nil
    12.  
    13. CheckUser(t, result2, user2)
    14. }
    15.  
    16. func TestFirstOrCreateNotExistsTable(t *testing.T) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  8. cni/pkg/util/pluginutil.go

    1. func ReadCNIConfigMap(path string) (map[string]any, error) {
    2. cniConfig, err := os.ReadFile(path)
    3. if err != nil {
    4. return nil, err
    5. }
    6.  
    7. var cniConfigMap map[string]any
    8. if err = json.Unmarshal(cniConfig, &cniConfigMap); err != nil {
    9. return nil, fmt.Errorf("%s: %w", path, err)
    10. }
    11.  
    12. return cniConfigMap, nil
    13. }
    14.  
    15. // Given an unmarshalled CNI config JSON map, return the plugin list asserted as a []interface{}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/compare/comparator.go

    1. err := json.Unmarshal(resp, istiodDump)
    2. if err != nil {
    3. continue
    4. }
    5. c.istiod = istiodDump
    6. break
    7. }
    8. if c.istiod == nil {
    9. return nil, fmt.Errorf("unable to find config dump in Istiod responses")
    10. }
    11. envoyDump := &configdump.Wrapper{}
    12. err := json.Unmarshal(envoyResponse, envoyDump)
    13. if err != nil {
    14. return nil, err
    15. }
    16. c.envoy = envoyDump
    17. c.w = w
    18. c.context = 7
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. cmd/object-api-options.go

    1. clientKey, err = crypto.SSECopy.ParseHTTP(header)
    2. if err != nil {
    3. return
    4. }
    5. if sse, err = encrypt.NewSSEC(clientKey[:]); err != nil {
    6. return
    7. }
    8. opts.ServerSideEncryption = encrypt.SSECopy(sse)
    9. return
    10. }
    11. return
    12. }
    13.  
    14. if crypto.SSEC.IsRequested(header) {
    15. clientKey, err = crypto.SSEC.ParseHTTP(header)
    16. if err != nil {
    17. return
    18. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top