MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / Test_float64ToString

Function Test_float64ToString

client/utils_test.go:158–182  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

156}
157
158func 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
184func Test_bytesToHexString(t *testing.T) {
185 type args struct {

Callers

nothing calls this directly

Calls 1

float64ToStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…