10
10
11
11
#[ tokio:: test]
12
12
async fn test_precise_sqrt_u64_max ( ) {
13
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
13
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
14
14
15
15
// This is way too big! It's possible to dial down the numbers to get to
16
16
// something reasonable, but the better option is to do everything in u64
@@ -28,7 +28,7 @@ async fn test_precise_sqrt_u64_max() {
28
28
29
29
#[ tokio:: test]
30
30
async fn test_precise_sqrt_u32_max ( ) {
31
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
31
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
32
32
33
33
pc. set_compute_max_units ( 170_000 ) ;
34
34
@@ -44,7 +44,7 @@ async fn test_precise_sqrt_u32_max() {
44
44
45
45
#[ tokio:: test]
46
46
async fn test_sqrt_u64 ( ) {
47
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
47
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
48
48
49
49
// Dial down the BPF compute budget to detect if the operation gets bloated in
50
50
// the future
@@ -60,7 +60,7 @@ async fn test_sqrt_u64() {
60
60
61
61
#[ tokio:: test]
62
62
async fn test_sqrt_u128 ( ) {
63
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
63
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
64
64
65
65
// Dial down the BPF compute budget to detect if the operation gets bloated in
66
66
// the future
@@ -78,7 +78,7 @@ async fn test_sqrt_u128() {
78
78
79
79
#[ tokio:: test]
80
80
async fn test_sqrt_u128_max ( ) {
81
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
81
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
82
82
83
83
pc. set_compute_max_units ( 7_000 ) ;
84
84
@@ -92,7 +92,7 @@ async fn test_sqrt_u128_max() {
92
92
93
93
#[ tokio:: test]
94
94
async fn test_u64_multiply ( ) {
95
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
95
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
96
96
97
97
pc. set_compute_max_units ( 1350 ) ;
98
98
@@ -106,7 +106,7 @@ async fn test_u64_multiply() {
106
106
107
107
#[ tokio:: test]
108
108
async fn test_u64_divide ( ) {
109
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
109
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
110
110
111
111
pc. set_compute_max_units ( 1650 ) ;
112
112
@@ -120,7 +120,7 @@ async fn test_u64_divide() {
120
120
121
121
#[ tokio:: test]
122
122
async fn test_f32_multiply ( ) {
123
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
123
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
124
124
125
125
pc. set_compute_max_units ( 1600 ) ;
126
126
@@ -136,7 +136,7 @@ async fn test_f32_multiply() {
136
136
137
137
#[ tokio:: test]
138
138
async fn test_f32_divide ( ) {
139
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
139
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
140
140
141
141
pc. set_compute_max_units ( 1650 ) ;
142
142
@@ -152,7 +152,7 @@ async fn test_f32_divide() {
152
152
153
153
#[ tokio:: test]
154
154
async fn test_f32_exponentiate ( ) {
155
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
155
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
156
156
157
157
pc. set_compute_max_units ( 1400 ) ;
158
158
@@ -168,7 +168,7 @@ async fn test_f32_exponentiate() {
168
168
169
169
#[ tokio:: test]
170
170
async fn test_f32_natural_log ( ) {
171
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
171
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
172
172
173
173
pc. set_compute_max_units ( 3500 ) ;
174
174
@@ -184,7 +184,7 @@ async fn test_f32_natural_log() {
184
184
185
185
#[ tokio:: test]
186
186
async fn test_f32_normal_cdf ( ) {
187
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
187
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
188
188
189
189
// Dial down the BPF compute budget to detect if the operation gets bloated in
190
190
// the future
@@ -200,7 +200,7 @@ async fn test_f32_normal_cdf() {
200
200
201
201
#[ tokio:: test]
202
202
async fn test_f64_pow ( ) {
203
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
203
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
204
204
205
205
pc. set_compute_max_units ( 30_000 ) ;
206
206
@@ -216,7 +216,7 @@ async fn test_f64_pow() {
216
216
217
217
#[ tokio:: test]
218
218
async fn test_u128_multiply ( ) {
219
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
219
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
220
220
221
221
pc. set_compute_max_units ( 10000 ) ;
222
222
@@ -232,7 +232,7 @@ async fn test_u128_multiply() {
232
232
233
233
#[ tokio:: test]
234
234
async fn test_u128_divide ( ) {
235
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
235
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
236
236
237
237
pc. set_compute_max_units ( 10000 ) ;
238
238
@@ -248,7 +248,7 @@ async fn test_u128_divide() {
248
248
249
249
#[ tokio:: test]
250
250
async fn test_f64_multiply ( ) {
251
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
251
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
252
252
253
253
pc. set_compute_max_units ( 10000 ) ;
254
254
@@ -264,7 +264,7 @@ async fn test_f64_multiply() {
264
264
265
265
#[ tokio:: test]
266
266
async fn test_f64_divide ( ) {
267
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
267
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
268
268
269
269
pc. set_compute_max_units ( 10000 ) ;
270
270
@@ -280,7 +280,7 @@ async fn test_f64_divide() {
280
280
281
281
#[ tokio:: test]
282
282
async fn test_noop ( ) {
283
- let mut pc = ProgramTest :: new ( "spl_math " , id ( ) , processor ! ( process_instruction) ) ;
283
+ let mut pc = ProgramTest :: new ( "spl_math_example " , id ( ) , processor ! ( process_instruction) ) ;
284
284
285
285
pc. set_compute_max_units ( 1200 ) ;
286
286
0 commit comments