Search Options

Results per page
Sort
Preferred Languages
Advance

Results 431 - 440 of 1,684 for testOrg (0.06 sec)

  1. tests/delete_test.go

    package tests_test
    
    import (
    	"errors"
    	"testing"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestDelete(t *testing.T) {
    	users := []User{*GetUser("delete", Config{}), *GetUser("delete", Config{}), *GetUser("delete", Config{})}
    
    	if err := DB.Create(&users).Error; err != nil {
    		t.Errorf("errors happened when create: %v", err)
    	}
    
    	for _, user := range users {
    		if user.ID == 0 {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Oct 10 07:03:34 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  2. tests/query_test.go

    package tests_test
    
    import (
    	"database/sql"
    	"database/sql/driver"
    	"fmt"
    	"reflect"
    	"regexp"
    	"sort"
    	"strconv"
    	"strings"
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestFind(t *testing.T) {
    	users := []User{
    		*GetUser("find", Config{}),
    		*GetUser("find", Config{}),
    		*GetUser("find", Config{}),
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  3. internal/config/config_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package config
    
    import (
    	"testing"
    )
    
    func TestKVFields(t *testing.T) {
    	tests := []struct {
    		input          string
    		keys           []string
    		expectedFields map[string]struct{}
    	}{
    		// No keys present
    		{
    			input:          "",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 18 22:55:17 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  4. tests/transaction_test.go

    package tests_test
    
    import (
    	"context"
    	"errors"
    	"testing"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestTransaction(t *testing.T) {
    	tx := DB.Begin()
    	user := *GetUser("transaction", Config{})
    
    	if err := tx.Save(&user).Error; err != nil {
    		t.Fatalf("No error should raise, but got %v", err)
    	}
    
    	if err := tx.First(&User{}, "name = ?", "transaction").Error; err != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. internal/lock/lock_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package lock
    
    import (
    	"os"
    	"testing"
    	"time"
    )
    
    // Test lock fails.
    func TestLockFail(t *testing.T) {
    	f, err := os.CreateTemp("", "lock")
    	if err != nil {
    		t.Fatal(err)
    	}
    	f.Close()
    	defer func() {
    		err = os.Remove(f.Name())
    		if err != nil {
    			t.Fatal(err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  6. CHANGELOG/CHANGELOG-1.31.md

    - Kubernetes is now built with go 1.22.8 ([#128132](https://github.com/kubernetes/kubernetes/pull/128132), [@haitch](https://github.com/haitch)) [SIG Release and Testing]
    
    ### Bug or Regression
    
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Wed Oct 23 12:18:32 UTC 2024
    - 315.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Converter;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.testing.Helpers;
    import com.google.common.testing.NullPointerTester;
    import com.google.common.testing.SerializableTester;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.Comparator;
    import java.util.List;
    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. tests/update_test.go

    package tests_test
    
    import (
    	"errors"
    	"regexp"
    	"sort"
    	"strings"
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/utils"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestUpdate(t *testing.T) {
    	var (
    		users = []*User{
    			GetUser("update-1", Config{}),
    			GetUser("update-2", Config{}),
    			GetUser("update-3", Config{}),
    		}
    		user          = users[1]
    		lastUpdatedAt time.Time
    	)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Dec 04 03:50:58 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  9. internal/store/queuestore_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package store
    
    import (
    	"fmt"
    	"os"
    	"path/filepath"
    	"reflect"
    	"testing"
    )
    
    type TestItem struct {
    	Name     string `json:"Name"`
    	Property string `json:"property"`
    }
    
    var (
    	// TestDir
    	queueDir = filepath.Join(os.TempDir(), "minio_test")
    	// Sample test item.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. internal/hash/reader_test.go

    package hash
    
    import (
    	"bytes"
    	"context"
    	"encoding/base64"
    	"encoding/hex"
    	"fmt"
    	"io"
    	"testing"
    
    	"github.com/minio/minio/internal/ioutil"
    )
    
    // Tests functions like Size(), MD5*(), SHA256*()
    func TestHashReaderHelperMethods(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top