Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for testInit (0.1 sec)

  1. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTaskIntegrationTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility
    
    import com.google.gson.Gson
    import org.gradle.testkit.runner.TaskOutcome
    import org.junit.jupiter.api.Assertions.assertEquals
    import org.junit.jupiter.api.Test
    
    
    class SortAcceptedApiChangesTaskIntegrationTest : AbstractAcceptedApiChangesMaintenanceTaskIntegrationTest() {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Mar 14 02:17:00 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        Sink sink = new Sink(4);
        sink.putShort((short) 0x0201);
        HashCode unused = sink.hash();
        sink.assertInvariants(2);
        sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros
      }
    
      public void testInt() {
        Sink sink = new Sink(4);
        sink.putInt(0x04030201);
        HashCode unused = sink.hash();
        sink.assertInvariants(4);
        sink.assertBytes(new byte[] {1, 2, 3, 4});
      }
    
      public void testLong() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.docs
    
    import org.gradle.testkit.runner.GradleRunner
    import spock.lang.Specification
    import spock.lang.TempDir
    
    class FindBrokenInternalLinksTest extends Specification {
        @TempDir
        private File projectDir
        private File docsRoot
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Aug 21 16:24:54 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  4. .teamcity/src/test/kotlin/CIConfigIntegrationTests.kt

                assertFalse(
                    containsSrcFileWithString(
                        File(it, "src/integTest"),
                        "CrossVersion",
                        listOf("package org.gradle.testkit", "CrossVersionPerformanceTest"),
                    ),
                )
            }
        }
    
        @Test
        fun long_ids_are_shortened() {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Oct 16 01:27:05 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          BigInteger halfEven = BigIntegerMath.sqrt(x, HALF_EVEN);
          // Now figure out what rounding mode we should behave like (it depends if FLOOR was
          // odd/even).
          boolean floorWasOdd = BigIntegerMath.sqrt(x, FLOOR).testBit(0);
          assertEquals(BigIntegerMath.sqrt(x, floorWasOdd ? HALF_UP : HALF_DOWN), halfEven);
        }
      }
    
      @GwtIncompatible // TODO
      @AndroidIncompatible // slow
      public void testDivNonZero() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Nov 19 01:35:24 UTC 2025
    - 27.1K bytes
    - Viewed (0)
  6. tests/query_test.go

    	if !regexp.MustCompile(`SELECT u\.\* FROM .*users.*`).MatchString(r.Statement.SQL.String()) {
    		t.Fatalf("Build Select with u.*, but got %v", r.Statement.SQL.String())
    	}
    }
    
    func TestOmit(t *testing.T) {
    	user := User{Name: "OmitUser1", Age: 20}
    	DB.Save(&user)
    
    	var result User
    	DB.Where("name = ?", user.Name).Omit("name").Find(&result)
    	if result.ID == 0 {
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Tue Jul 22 06:21:04 UTC 2025
    - 51K bytes
    - Viewed (0)
  7. src/bytes/buffer_test.go

    func TestCapWithSliceAndWrittenData(t *testing.T) {
    	buf := NewBuffer(make([]byte, 0, 10))
    	buf.Write([]byte("test"))
    	n := buf.Cap()
    	if n != 10 {
    		t.Errorf("expected 10, got %d", n)
    	}
    }
    
    func TestNil(t *testing.T) {
    	var b *Buffer
    	if b.String() != "<nil>" {
    		t.Errorf("expected <nil>; got %q", b.String())
    	}
    }
    
    func TestReadFrom(t *testing.T) {
    	var buf Buffer
    	for i := 3; i < 30; i += 3 {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Nov 14 19:01:17 UTC 2025
    - 19.4K bytes
    - Viewed (0)
Back to top