Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 585 for units (0.04 sec)

  1. guava-tests/test/com/google/common/util/concurrent/FakeTimeLimiterTest.java

    import static org.junit.Assert.assertThrows;
    
    import java.util.concurrent.Callable;
    import java.util.concurrent.ExecutionException;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link FakeTimeLimiter}.
     *
     * @author Jens Nyman
     */
    public class FakeTimeLimiterTest extends TestCase {
    
      private static final int DELAY_MS = 50;
      private static final String RETURN_VALUE = "abc";
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. internal/pubsub/pubsub.go

    }
    
    // Subscribers returns the number of current subscribers for all types.
    func (ps *PubSub[T, M]) Subscribers() int32 {
    	return atomic.LoadInt32(&ps.numSubscribers)
    }
    
    // New inits a PubSub system with a limit of maximum
    // subscribers unless zero is specified
    func New[T Maskable, M Maskable](maxSubscribers int32) *PubSub[T, M] {
    	return &PubSub[T, M]{maxSubscribers: maxSubscribers}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 06 16:57:30 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/dict/synonym/SynonymItemTest.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.dict.synonym;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    
    public class SynonymItemTest extends UnitFessTestCase {
    
        public void test_new1() {
            final SynonymItem synonymItem = new SynonymItem(1, new String[] { "a", "A" }, new String[] { "b", "B" });
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/StopwatchTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.testing.FakeTicker;
    import junit.framework.TestCase;
    
    /**
     * Unit test for {@link Stopwatch}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public class StopwatchTest extends TestCase {
    
      private final FakeTicker ticker = new FakeTicker();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

    import java.util.concurrent.atomic.AtomicInteger;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit test for {@link AbstractMultiset}.
     *
     * @author Kevin Bourrillion
     * @author Louis Wasserman
     */
    @SuppressWarnings("serial") // No serialization is used in this test
    @GwtCompatible(emulated = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. ci/official/containers/ml_build/Dockerfile

    RUN ln -sf /usr/lib/python3.12 /usr/lib/tf_python
    
    # Make sure clang is on the path
    RUN ln -s /usr/lib/llvm-18/bin/clang /usr/bin/clang
    
    # Install various tools.
    # - bats: bash unit testing framework
    # - bazelisk: always use the correct bazel version
    # - buildifier: clean bazel build deps
    # - buildozer: clean bazel build deps
    # - gcloud SDK: communicate with Google Cloud Platform (GCP) for RBE, CI
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 30 00:07:17 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. .teamcity/src/test/kotlin/ApplyDefaultConfigurationTest.kt

            subprojects = JsonBasedGradleSubprojectProvider(File("../.teamcity/subprojects.json"))
        )
    
        @BeforeEach
        fun setUp() {
            val stepsCapturer = slot<BuildSteps.() -> Unit>()
            every { buildType.steps } returns steps
            every { buildType.stage } returns buildModel.stages[2]
            every {
                buildType.steps(capture(stepsCapturer))
            } answers {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Sep 24 06:22:49 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

    import java.util.concurrent.TimeUnit;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A TimeLimiter implementation which actually does not attempt to limit time at all. This may be
     * desirable to use in some unit tests. More importantly, attempting to debug a call which is
     * time-limited would be extremely annoying, so this gives you a time-limiter you can easily swap in
     * for your real time-limiter while you're debugging.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/query/FuzzyQueryCommand.java

    import org.codelibs.fess.exception.InvalidQueryException;
    import org.codelibs.fess.mylasta.direction.FessConfig;
    import org.codelibs.fess.util.ComponentUtil;
    import org.lastaflute.core.message.UserMessages;
    import org.opensearch.common.unit.Fuzziness;
    import org.opensearch.index.query.QueryBuilder;
    import org.opensearch.index.query.QueryBuilders;
    
    public class FuzzyQueryCommand extends QueryCommand {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt

        val responseString = same.body.string()
        assertThat(responseString).isEmpty()
      }
    
      private fun response(
        url: String,
        bodyHex: ByteString,
        fn: Response.Builder.() -> Unit = {},
      ): Response {
        return Response.Builder()
          .body(bodyHex.toResponseBody("text/plain".toMediaType()))
          .code(200)
          .message("OK")
          .request(Request.Builder().url(url).build())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top