unloggedio / unlogged-sdk

Unlogged SDK for recording code execution
https://unlogged.io
Apache License 2.0
152 stars 16 forks source link

No assertions being added for var primitives in webflux demo. #76

Open kingkong-AI opened 2 weeks ago

kingkong-AI commented 2 weeks ago

Describe the bug

Controller: VarKeywordController Code:

    @RequestMapping("/int")
    public Mono<Integer> getIntVar(@RequestParam int n) {
        var a = 9;
        a+=n;
        return Mono.just(a);
    }

Issue: When saving replay cases no assertion is being added for var with primitive data types like int, double, float. image

Reproduction steps

  1. Direct invoke the above method.
  2. Try to save its replay case.
  3. No assertion is added. ...

Expected behavior

Assertion should be there to assert the int/float/double values.

Additional context

No response