MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / test_das_string

Function test_das_string

modules/dasUnitTest/test_handles.cpp:178–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176};
177
178void test_das_string(const Block & block, Context * context, LineInfoArg * at) {
179 string str = "test_das_string";
180 string str2;
181 vec4f args[2];
182 args[0] = cast<void *>::from(&str);
183 args[1] = cast<void *>::from(&str2);
184 context->invoke(block, args, nullptr, at);
185 if (str != "out_of_it") context->throw_error_at(at, "test string mismatch");
186 if (str2 != "test_das_string") context->throw_error_at(at, "test string clone mismatch");
187}
188
189void testPipedDefaults(int32_t a, float b, const TBlock<void, int32_t, float> & blk, Context * context, LineInfoArg * at) {
190 das_invoke<void>::invoke(context, at, blk, a, b);

Callers

nothing calls this directly

Calls 2

throw_error_atMethod · 0.80
invokeMethod · 0.45

Tested by

no test coverage detected