(b *testing.B)
| 2909 | } |
| 2910 | |
| 2911 | func BenchmarkDefaultBinder_BindInt64_single(b *testing.B) { |
| 2912 | type Opts struct { |
| 2913 | Param int64 `query:"param"` |
| 2914 | } |
| 2915 | c := createTestContext("/search?param=1¶m=100", nil, nil) |
| 2916 | |
| 2917 | b.ReportAllocs() |
| 2918 | b.ResetTimer() |
| 2919 | binder := new(DefaultBinder) |
| 2920 | for i := 0; i < b.N; i++ { |
| 2921 | var dest Opts |
| 2922 | _ = binder.Bind(c, &dest) |
| 2923 | } |
| 2924 | } |
| 2925 | |
| 2926 | func BenchmarkValueBinder_BindInt64_single(b *testing.B) { |
| 2927 | c := createTestContext("/search?param=1¶m=100", nil, nil) |
nothing calls this directly
no test coverage detected
searching dependent graphs…