(c)
| 49 | @pytest.mark.parametrize("c", range(len(context_choice_ids)), |
| 50 | ids=context_choice_ids) |
| 51 | def test_context(c): |
| 52 | ctx, nb_ctx = context_choices[c] |
| 53 | assert ctx.handle == nb_ctx.handle.value |
| 54 | assert ctx.handle == ctx.to_numba().handle.value |
| 55 | ctx2 = cuda.Context.from_numba(nb_ctx) |
| 56 | assert ctx.handle == ctx2.handle |
| 57 | size = 10 |
| 58 | buf = ctx.new_buffer(size) |
| 59 | assert ctx.handle == buf.context.handle |
| 60 | |
| 61 | |
| 62 | def make_random_buffer(size, target='host', dtype='uint8', ctx=None): |
nothing calls this directly
no outgoing calls
no test coverage detected