MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / TestConvertToStructFieldName

Function TestConvertToStructFieldName

identity_test.go:496–514  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

494}
495
496func 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}

Callers

nothing calls this directly

Calls 1

convertToStructFieldNameFunction · 0.70

Tested by

no test coverage detected