[prev in list] [next in list] [prev in thread] [next in thread] 

List:       avro-dev
Subject:    [jira] [Created] (AVRO-3766) [Rust] Print fliendlier errors when test cases fail
From:       "Martin Tzvetanov Grigorov (Jira)" <jira () apache ! org>
Date:       2023-05-31 13:28:00
Message-ID: JIRA.13538274.1685539671000.37311.1685539680037 () Atlassian ! JIRA
[Download RAW message or body]

Martin Tzvetanov Grigorov created AVRO-3766:
-----------------------------------------------

             Summary: [Rust] Print fliendlier errors when test cases fail
                 Key: AVRO-3766
                 URL: https://issues.apache.org/jira/browse/AVRO-3766
             Project: Apache Avro
          Issue Type: Improvement
          Components: rust
            Reporter: Martin Tzvetanov Grigorov
            Assignee: Martin Tzvetanov Grigorov


[https://bluxte.net/musings/2023/01/08/improving_failure_messages_rust_test=
s/]

=C2=A0

The idea is to use=C2=A0 #[track_caller] attribute on a method that panics =
immediately.


This way the "useless" frames from the unwinding are not printed.

An extra benefit is the removal of calls to Result::unwrap() in the tests.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic