(t *testing.T)
| 494 | } |
| 495 | |
| 496 | func TestConvertToStructFieldName(t *testing.T) { |
| 497 | tests := []struct { |
| 498 | input string |
| 499 | expected string |
| 500 | }{ |
| 501 | {"email_address", "Email_address"}, |
| 502 | {"first_name", "First_name"}, |
| 503 | {"phone_number", "Phone_number"}, |
| 504 | {"EmailAddress", "EmailAddress"}, |
| 505 | {"", ""}, |
| 506 | } |
| 507 | |
| 508 | for _, tt := range tests { |
| 509 | t.Run(tt.input, func(t *testing.T) { |
| 510 | result := convertToStructFieldName(tt.input) |
| 511 | assert.Equal(t, tt.expected, result) |
| 512 | }) |
| 513 | } |
| 514 | } |
nothing calls this directly
no test coverage detected