Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for testJoin (0.1 sec)

  1. clause/joins_test.go

    package clause_test
    
    import (
    	"sync"
    	"testing"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils/tests"
    )
    
    func TestJoin(t *testing.T) {
    	results := []struct {
    		name string
    		join clause.Join
    		sql  string
    	}{
    		{
    			name: "LEFT JOIN",
    			join: clause.Join{
    				Type:  clause.LeftJoin,
    				Table: clause.Table{Name: "user"},
    				ON: clause.Where{
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Nov 03 13:03:13 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

    import java.util.Collections;
    import java.util.List;
    
    /**
     * Test class for {@link MultiInputStream}.
     *
     * @author Chris Nokleberg
     */
    public class MultiInputStreamTest extends IoTestCase {
    
      public void testJoin() throws Exception {
        joinHelper(0);
        joinHelper(1);
        joinHelper(0, 0, 0);
        joinHelper(10, 20);
        joinHelper(10, 0, 20);
        joinHelper(0, 10, 20);
        joinHelper(10, 20, 0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

          for (int i = 0; i <= 0xff; i++) {
            assertThat(UnsignedBytes.toString((byte) i, radix)).isEqualTo(Integer.toString(i, radix));
          }
        }
      }
    
      public void testJoin() {
        assertThat(UnsignedBytes.join(",", new byte[] {})).isEmpty();
        assertThat(UnsignedBytes.join(",", new byte[] {(byte) 1})).isEqualTo("1");
        assertThat(UnsignedBytes.join(",", (byte) 1, (byte) 2)).isEqualTo("1,2");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        for (long a : UNSIGNED_INTS) {
          for (int base : bases) {
            assertThat(Long.toString(a, base)).isEqualTo(UnsignedInts.toString((int) a, base));
          }
        }
      }
    
      public void testJoin() {
        assertThat(join()).isEmpty();
        assertThat(join(1)).isEqualTo("1");
        assertThat(join(1, 2)).isEqualTo("1,2");
        assertThat(join(-1, Integer.MIN_VALUE)).isEqualTo("4294967295,2147483648");
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java

    import java.util.Collections;
    import java.util.List;
    
    /**
     * Test class for {@link MultiInputStream}.
     *
     * @author Chris Nokleberg
     */
    public class MultiInputStreamTest extends IoTestCase {
    
      public void testJoin() throws Exception {
        joinHelper(0);
        joinHelper(1);
        joinHelper(0, 0, 0);
        joinHelper(10, 20);
        joinHelper(10, 0, 20);
        joinHelper(0, 10, 20);
        joinHelper(10, 20, 0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        assertThrows(IllegalArgumentException.class, () -> Chars.ensureCapacity(ARRAY1, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Chars.ensureCapacity(ARRAY1, 1, -1));
      }
    
      public void testJoin() {
        assertThat(Chars.join(",", EMPTY)).isEmpty();
        assertThat(Chars.join(",", '1')).isEqualTo("1");
        assertThat(Chars.join(",", '1', '2')).isEqualTo("1,2");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThrows(IllegalArgumentException.class, () -> Doubles.ensureCapacity(ARRAY1, 1, -1));
      }
    
      @GwtIncompatible // Double.toString returns different value in GWT.
      public void testJoin() {
        assertThat(Doubles.join(",", EMPTY)).isEmpty();
        assertThat(Doubles.join(",", ARRAY1)).isEqualTo("1.0");
        assertThat(Doubles.join(",", (double) 1, (double) 2)).isEqualTo("1.0,2.0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThrows(IllegalArgumentException.class, () -> Booleans.ensureCapacity(ARRAY_FALSE, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Booleans.ensureCapacity(ARRAY_FALSE, 1, -1));
      }
    
      public void testJoin() {
        assertThat(Booleans.join(",", EMPTY)).isEmpty();
        assertThat(Booleans.join(",", ARRAY_FALSE)).isEqualTo("false");
        assertThat(Booleans.join(",", false, true)).isEqualTo("false,true");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThrows(IllegalArgumentException.class, () -> Floats.ensureCapacity(ARRAY1, 1, -1));
      }
    
      @GwtIncompatible // Float.toString returns different value in GWT.
      public void testJoin() {
        assertThat(Floats.join(",", EMPTY)).isEmpty();
        assertThat(Floats.join(",", ARRAY1)).isEqualTo("1.0");
        assertThat(Floats.join(",", (float) 1, (float) 2)).isEqualTo("1.0,2.0");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThrows(IllegalArgumentException.class, () -> Ints.ensureCapacity(ARRAY1, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Ints.ensureCapacity(ARRAY1, 1, -1));
      }
    
      public void testJoin() {
        assertThat(Ints.join(",", EMPTY)).isEmpty();
        assertThat(Ints.join(",", ARRAY1)).isEqualTo("1");
        assertThat(Ints.join(",", (int) 1, (int) 2)).isEqualTo("1,2");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
Back to top