- Sort Score
- Result 10 results
- Languages All
Results 381 - 390 of 1,167 for setUp (0.02 sec)
-
guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java
// Use a constant seed for all of the benchmarks to ensure apples to apples comparisons. private static final int RANDOM_SEED = new Random().nextInt(); private byte[] testBytes; @BeforeExperiment void setUp() { testBytes = new byte[size]; new Random(RANDOM_SEED).nextBytes(testBytes); } @Benchmark byte hashing(int reps) { byte result = 0x01; HashMethod hashMethod = this.hashMethod;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 3.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java
@Param({"10", "100", "10000"}) int n; private final byte[][] encodingInputs = new byte[INPUTS_COUNT][]; private final String[] decodingInputs = new String[INPUTS_COUNT]; @BeforeExperiment public void setUp() { Random rng = new Random(); for (int i = 0; i < encodingInputs.length; i++) { encodingInputs[i] = new byte[n]; rng.nextBytes(encodingInputs[i]);Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/DfsResolverTest.java
@Mock private Credentials mockCredentials; @Mock private SmbTransportPool mockTransportPool; @Mock private SmbTransportInternal mockTransport; @BeforeEach void setUp() { dfsResolver = new DfsImpl(mockContext); when(mockContext.getConfig()).thenReturn(mockConfig); } // Test for isTrustedDomain method @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/SmbTreeTest.java
class SmbTreeTest { @Mock private SmbTree smbTree; @Mock private SmbTree mockWrappedTree; /** * Setup method executed before each test. */ @BeforeEach void setUp() { // Common setup if needed } /** * Test for unwrap() method with matching type. * Verifies that unwrap returns the correct instance when the type matches.Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
.github/workflows/maven.yml
cancel-in-progress: true # clear all permissions for GITHUB_TOKEN permissions: {} jobs: initial-build: runs-on: ubuntu-latest steps: - name: Set up JDK uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5 with: java-version: 17 distribution: 'temurin' - name: Checkout mavenRegistered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Mon Aug 25 07:07:00 UTC 2025 - 8.2K bytes - Viewed (0) -
.github/workflows/go-lint.yml
runs-on: ${{ matrix.os }} strategy: matrix: go-version: [1.24.x] os: [ubuntu-latest] steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} check-latest: true - name: Build on ${{ matrix.os }} if: matrix.os == 'ubuntu-latest' env: CGO_ENABLED: 0Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 1010 bytes - Viewed (0) -
src/test/java/org/codelibs/fess/score/QueryRescorerTest.java
import org.opensearch.search.rescore.RescorerBuilder; public class QueryRescorerTest extends UnitFessTestCase { private QueryRescorer queryRescorer; @Override public void setUp() throws Exception { super.setUp(); } public void test_evaluate_withNullParams() { // Test implementation that returns null queryRescorer = new QueryRescorer() { @OverrideRegistered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.3K bytes - Viewed (0) -
.github/workflows/maven.yml
- master - "*.x" jobs: build: runs-on: ubuntu-latest env: PARENT_BRANCH: main steps: - uses: actions/checkout@v4 - name: Set up JDK 21 uses: actions/setup-java@v4 with: java-version: '21' distribution: 'temurin' - uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Sun May 18 02:59:16 UTC 2025 - 1.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
@Mock private Configuration mockConfig; @Mock private CIFSContext mockContext; private byte[] testFileId; private Smb2WriteRequest request; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); when(mockContext.getConfig()).thenReturn(mockConfig); testFileId = new byte[16]; new SecureRandom().nextBytes(testFileId);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.4K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java
int size; // use concrete classes to remove any possible polymorphic overhead? Object[] array; ArrayList<Object> arrayList; LinkedList<Object> linkedList; @BeforeExperiment void setUp() { array = new Object[size]; arrayList = Lists.newArrayListWithCapacity(size); linkedList = new LinkedList<>(); for (int i = 0; i < size; i++) { Object value = new Object();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 3.5K bytes - Viewed (0)