Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestConvertSliceOfMapToValuesForCreate (0.26 sec)

  1. callbacks/helper_test.go

    			actual := ConvertMapToValuesForCreate(&gorm.Statement{}, tc.input)
    			if !reflect.DeepEqual(actual, tc.expect) {
    				t.Errorf("expect %v got %v", tc.expect, actual)
    			}
    		})
    	}
    }
    
    func TestConvertSliceOfMapToValuesForCreate(t *testing.T) {
    	testCase := []struct {
    		name   string
    		input  []map[string]interface{}
    		expect clause.Values
    	}{
    		{
    			name: "Test convert slice of string value",
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Mar 05 02:22:57 GMT 2024
    - 3.4K bytes
    - Viewed (0)
Back to top