MCPcopy Create free account
hub / github.com/goadesign/goa / TestDecode

Function TestDecode

http/codegen/server_decode_test.go:13–238  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestDecode(t *testing.T) {
14 cases := []struct {
15 Name string
16 DSL func()
17 }{
18 {"decode-path-custom-float32", testdata.PayloadPathCustomFloat32DSL},
19 {"decode-path-custom-float64", testdata.PayloadPathCustomFloat64DSL},
20 {"decode-path-custom-int", testdata.PayloadPathCustomIntDSL},
21 {"decode-path-custom-int32", testdata.PayloadPathCustomInt32DSL},
22 {"decode-path-custom-int64", testdata.PayloadPathCustomInt64DSL},
23 {"decode-path-custom-uint", testdata.PayloadPathCustomUIntDSL},
24 {"decode-path-custom-uint32", testdata.PayloadPathCustomUInt32DSL},
25 {"decode-path-custom-uint64", testdata.PayloadPathCustomUInt64DSL},
26 {"decode-path-custom-text-unmarshaler", testdata.PayloadPathCustomTextUnmarshalerDSL},
27 {"decode-path-custom-text-unmarshaler-format", testdata.PayloadPathCustomTextUnmarshalerFormatDSL},
28 {"decode-query-custom-text-unmarshaler", testdata.PayloadQueryCustomTextUnmarshalerDSL},
29 {"decode-query-custom-text-unmarshaler-optional", testdata.PayloadQueryCustomTextUnmarshalerOptionalDSL},
30 {"decode-query-bool", testdata.PayloadQueryBoolDSL},
31 {"decode-query-bool-validate", testdata.PayloadQueryBoolValidateDSL},
32 {"decode-query-int", testdata.PayloadQueryIntDSL},
33 {"decode-query-int-validate", testdata.PayloadQueryIntValidateDSL},
34 {"decode-query-int32", testdata.PayloadQueryInt32DSL},
35 {"decode-query-int32-validate", testdata.PayloadQueryInt32ValidateDSL},
36 {"decode-query-int64", testdata.PayloadQueryInt64DSL},
37 {"decode-query-int64-validate", testdata.PayloadQueryInt64ValidateDSL},
38 {"decode-query-uint", testdata.PayloadQueryUIntDSL},
39 {"decode-query-uint-validate", testdata.PayloadQueryUIntValidateDSL},
40 {"decode-query-uint32", testdata.PayloadQueryUInt32DSL},
41 {"decode-query-uint32-validate", testdata.PayloadQueryUInt32ValidateDSL},
42 {"decode-query-uint64", testdata.PayloadQueryUInt64DSL},
43 {"decode-query-uint64-validate", testdata.PayloadQueryUInt64ValidateDSL},
44 {"decode-query-float32", testdata.PayloadQueryFloat32DSL},
45 {"decode-query-float32-validate", testdata.PayloadQueryFloat32ValidateDSL},
46 {"decode-query-float64", testdata.PayloadQueryFloat64DSL},
47 {"decode-query-float64-validate", testdata.PayloadQueryFloat64ValidateDSL},
48 {"decode-query-string", testdata.PayloadQueryStringDSL},
49 {"decode-query-string-validate", testdata.PayloadQueryStringValidateDSL},
50 {"decode-query-string-not-required-validate", testdata.PayloadQueryStringNotRequiredValidateDSL},
51 {"decode-query-bytes", testdata.PayloadQueryBytesDSL},
52 {"decode-query-bytes-validate", testdata.PayloadQueryBytesValidateDSL},
53 {"decode-query-any", testdata.PayloadQueryAnyDSL},
54 {"decode-query-any-validate", testdata.PayloadQueryAnyValidateDSL},
55 {"decode-query-array-bool", testdata.PayloadQueryArrayBoolDSL},
56 {"decode-query-array-bool-validate", testdata.PayloadQueryArrayBoolValidateDSL},
57 {"decode-query-array-int", testdata.PayloadQueryArrayIntDSL},
58 {"decode-query-array-int-validate", testdata.PayloadQueryArrayIntValidateDSL},
59 {"decode-query-array-int32", testdata.PayloadQueryArrayInt32DSL},
60 {"decode-query-array-int32-validate", testdata.PayloadQueryArrayInt32ValidateDSL},
61 {"decode-query-array-int64", testdata.PayloadQueryArrayInt64DSL},
62 {"decode-query-array-int64-validate", testdata.PayloadQueryArrayInt64ValidateDSL},
63 {"decode-query-array-uint", testdata.PayloadQueryArrayUIntDSL},
64 {"decode-query-array-uint-validate", testdata.PayloadQueryArrayUIntValidateDSL},
65 {"decode-query-array-uint32", testdata.PayloadQueryArrayUInt32DSL},
66 {"decode-query-array-uint32-validate", testdata.PayloadQueryArrayUInt32ValidateDSL},
67 {"decode-query-array-uint64", testdata.PayloadQueryArrayUInt64DSL},
68 {"decode-query-array-uint64-validate", testdata.PayloadQueryArrayUInt64ValidateDSL},
69 {"decode-query-array-float32", testdata.PayloadQueryArrayFloat32DSL},
70 {"decode-query-array-float32-validate", testdata.PayloadQueryArrayFloat32ValidateDSL},

Callers

nothing calls this directly

Calls 6

SectionCodeFunction · 0.92
AssertGoFunction · 0.92
RunHTTPDSLFunction · 0.85
CreateHTTPServicesFunction · 0.85
ServerFilesFunction · 0.70
RunMethod · 0.45

Tested by

no test coverage detected