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

Function TestConvertToStructFieldName_LedgerForge

transaction_test.go:6445–6463  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6443}
6444
6445func TestConvertToStructFieldName_LedgerForge(t *testing.T) {
6446 tests := []struct {
6447 input string
6448 expected string
6449 }{
6450 {"firstName", "FirstName"},
6451 {"email", "Email"},
6452 {"phone", "Phone"},
6453 {"", ""},
6454 {"A", "A"},
6455 }
6456
6457 for _, tc := range tests {
6458 t.Run(tc.input, func(t *testing.T) {
6459 result := convertToStructFieldName(tc.input)
6460 assert.Equal(t, tc.expected, result)
6461 })
6462 }
6463}
6464
6465func TestUpdateBalanceIdentity_Mock(t *testing.T) {
6466 cnf := &config.Configuration{

Callers

nothing calls this directly

Calls 1

convertToStructFieldNameFunction · 0.70

Tested by

no test coverage detected