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

Function Test_float32ToString

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

Source from the content-addressed store, hash-verified

130}
131
132func Test_float32ToString(t *testing.T) {
133 type args struct {
134 val float32
135 }
136 tests := []struct {
137 name string
138 args args
139 want string
140 }{
141 {
142 name: "Test Float32",
143 args: args{
144 val: 0.97800666,
145 },
146 want: "0.97800666",
147 },
148 }
149 for _, tt := range tests {
150 t.Run(tt.name, func(t *testing.T) {
151 if got := float32ToString(tt.args.val); got != tt.want {
152 t.Errorf("float32ToString() = %v, want %v", got, tt.want)
153 }
154 })
155 }
156}
157
158func Test_float64ToString(t *testing.T) {
159 type args struct {

Callers

nothing calls this directly

Calls 1

float32ToStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…