Search Options

Results per page
Sort
Preferred Languages
Advance

Results 671 - 680 of 1,270 for expectEq (0.1 sec)

  1. cmd/storage-datatypes.go

    	n.Erasure = fi.Erasure
    	return
    }
    
    // WriteQuorum returns expected write quorum for this FileInfo
    func (fi FileInfo) WriteQuorum(dquorum int) int {
    	if fi.Deleted {
    		return dquorum
    	}
    	quorum := fi.Erasure.DataBlocks
    	if fi.Erasure.DataBlocks == fi.Erasure.ParityBlocks {
    		quorum++
    	}
    	return quorum
    }
    
    // ReadQuorum returns expected read quorum for this FileInfo
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. cmd/http-tracer_test.go

    		},
    		{
    			"?x=y&a=b",
    			"?x=y&a=b",
    		},
    	}
    	for i, test := range testCases {
    		gotQuery := redactLDAPPwd(test.query)
    		if gotQuery != test.expectedQuery {
    			t.Fatalf("test %d: expected %s got %s", i+1, test.expectedQuery, gotQuery)
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb2EchoResponse.java

            int start = bufferIndex;
            int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if ( structureSize != 4 ) {
                throw new SMBProtocolDecodingException("Expected structureSize = 4");
            }
            return bufferIndex - start;
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_test_util.cc

      TFE_Context* ctx = TFE_NewContext(opts, status);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      TFE_ContextSetServerDefWithTimeout(ctx, 0, serialized_server_def.data(),
                                         serialized_server_def.size(),
                                         init_timeout_in_ms, status,
                                         /*clear_existing_contexts=*/false);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/openapi-webhooks.md

    This is because it is expected that **your users** would define the actual **URL path** where they want to receive the webhook request in some other way (e.g. a web dashboard).
    
    ### Check the docs
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 10:38:23 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. internal/bpool/bpool_test.go

    	}
    
    	// Check with width cap
    	if bp.WidthCap() != capWidth {
    		t.Fatalf("bytepool capWidth invalid: got %v want %v", bp.WidthCap(), capWidth)
    	}
    
    	// Check that retrieved buffer are of the expected width
    	b := bp.Get()
    	if len(b) != width {
    		t.Fatalf("bytepool length invalid: got %v want %v", len(b), width)
    	}
    	if cap(b) != capWidth {
    		t.Fatalf("bytepool cap invalid: got %v want %v", cap(b), capWidth)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. internal/config/api/help.go

    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    			Key:         apiListQuorum,
    			Description: `set the acceptable quorum expected for list operations e.g. "optimal", "reduced", "disk", "strict", "auto"` + defaultHelpPostfix(apiListQuorum),
    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         apiReplicationPriority,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 16 08:43:49 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ServiceTest.java

        assertLessThan(STOPPING, TERMINATED);
      }
    
      private static <T extends Comparable<? super T>> void assertLessThan(T a, T b) {
        if (a.compareTo(b) >= 0) {
          fail(String.format(Locale.ROOT, "Expected %s to be less than %s", a, b));
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.9K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/lang/ClassIteratorTest.java

            assertThat(it.next(), is(sameClass(Number.class)));
    
            assertThat(it.hasNext(), is(not(true)));
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = ClIllegalArgumentException.class)
        public void testInterface() throws Exception {
            new ClassIterator(Iterable.class);
        }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. internal/dsync/lock-args.go

    	Owner string
    
    	// Source contains the line number, function and file name of the code
    	// on the client node that requested the lock.
    	Source string `msgp:"omitempty"`
    
    	// Quorum represents the expected quorum for this lock type.
    	Quorum *int `msgp:"omitempty"`
    }
    
    // ResponseCode is the response code for a locking request.
    type ResponseCode uint8
    
    // Response codes for a locking request.
    const (
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jul 24 10:24:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top