stevedlawrence commented on code in PR #1375:
URL: https://github.com/apache/daffodil/pull/1375#discussion_r1847009506


##########
daffodil-tdml-lib/src/main/scala/org/apache/daffodil/tdml/RunnerFactory.scala:
##########
@@ -196,6 +196,15 @@ class Runner private (
   def this(elem: scala.xml.Elem) =
     this(Left(elem))
 
+  /**
+   * Uses sourcecode library to capture method name
+   * and use it as the test name.
+   *
+   * @param methodName implicitly computed name of method calling this method.
+   */
+  def doTest(implicit methodName: sourcecode.Enclosing): Unit =
+    runOneTest(methodName.value.split("#").last)

Review Comment:
   We already have a bunch of macros, I think one more (which I think is 
basically a one liner) wouldn't be to big of a headache to port to a newer 
version of scala.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to