Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CamelCaseToKebabCase (0.2 sec)

  1. pkg/util/strcase/camelcase_test.go

    		"HTTPAPISpec":        "http-api-spec",
    		"HTTPAPISpecBinding": "http-api-spec-binding",
    	}
    
    	for k, v := range cases {
    		t.Run(k, func(t *testing.T) {
    			g := NewWithT(t)
    
    			a := CamelCaseToKebabCase(k)
    			g.Expect(a).To(Equal(v))
    		})
    	}
    }
    
    func TestCamelCaseWithSeparator(t *testing.T) {
    	type args struct {
    		n   string
    		sep string
    	}
    	tests := []struct {
    		name string
    		args args
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top