(t *testing.T)
| 156 | } |
| 157 | |
| 158 | func Test_float64ToString(t *testing.T) { |
| 159 | type args struct { |
| 160 | val float64 |
| 161 | } |
| 162 | tests := []struct { |
| 163 | name string |
| 164 | args args |
| 165 | want string |
| 166 | }{ |
| 167 | { |
| 168 | name: "Test Float64", |
| 169 | args: args{ |
| 170 | val: 0.39751212862981283, |
| 171 | }, |
| 172 | want: "0.39751212862981283", |
| 173 | }, |
| 174 | } |
| 175 | for _, tt := range tests { |
| 176 | t.Run(tt.name, func(t *testing.T) { |
| 177 | if got := float64ToString(tt.args.val); got != tt.want { |
| 178 | t.Errorf("float64ToString() = %v, want %v", got, tt.want) |
| 179 | } |
| 180 | }) |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | func Test_bytesToHexString(t *testing.T) { |
| 185 | type args struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…