Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MustParse (0.04 sec)

  1. logger/sql_test.go

    }
    
    func TestExplainSQL(t *testing.T) {
    	type role string
    	type password []byte
    	type intType int
    	type floatType float64
    	var (
    		tt                 = now.MustParse("2020-02-23 11:10:10")
    		myrole             = role("admin")
    		pwd                = password("pass")
    		jsVal              = []byte(`{"Name":"test","Val":"test"}`)
    		js                 = JSON(jsVal)
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Mar 21 08:00:02 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. tests/create_test.go

    	}
    }
    
    func TestCreateWithExistingTimestamp(t *testing.T) {
    	user := User{Name: "CreateUserExistingTimestamp"}
    	curTime := now.MustParse("2016-01-01")
    	user.CreatedAt = curTime
    	user.UpdatedAt = curTime
    	DB.Save(&user)
    
    	AssertEqual(t, user.CreatedAt, curTime)
    	AssertEqual(t, user.UpdatedAt, curTime)
    
    	var newUser User
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 09:55:20 UTC 2025
    - 26.8K bytes
    - Viewed (0)
Back to top