(t *testing.T)
| 130 | } |
| 131 | |
| 132 | func 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 | |
| 158 | func Test_float64ToString(t *testing.T) { |
| 159 | type args struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…