Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestAssertEqual (0.12 sec)

  1. utils/utils_test.go

    	}
    }
    
    type ModifyAt sql.NullTime
    
    // Value return a Unix time.
    func (n ModifyAt) Value() (driver.Value, error) {
    	if !n.Valid {
    		return nil, nil
    	}
    	return n.Time.Unix(), nil
    }
    
    func TestAssertEqual(t *testing.T) {
    	now := time.Now()
    	assertEqualTests := []struct {
    		name     string
    		src, dst interface{}
    		out      bool
    	}{
    		{"error equal", errors.New("1"), errors.New("1"), true},
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top