File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
main/scala-2/sttp/attributes
test/scala/sttp/attributes Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ private[attributes] object AttributeKeyMacro {
6
6
def apply [T : c.WeakTypeTag ](c : blackbox.Context ): c.Expr [AttributeKey [T ]] = {
7
7
import c .universe ._
8
8
c.Expr [AttributeKey [T ]](
9
- q " new _root_.sttp.tapir .AttributeKey( ${c.universe.show(implicitly[c.WeakTypeTag [T ]].tpe)}) "
9
+ q " new _root_.sttp.attributes .AttributeKey( ${c.universe.show(implicitly[c.WeakTypeTag [T ]].tpe)}) "
10
10
)
11
11
}
12
12
}
Original file line number Diff line number Diff line change
1
+ package sttp .attributes
2
+
3
+ import org .scalatest .matchers .should .Matchers
4
+ import org .scalatest .flatspec .AnyFlatSpec
5
+
6
+ class AttributeKeyTest extends AnyFlatSpec with Matchers {
7
+ it should " create an attribute key" in {
8
+ val key = AttributeKey [SomeAttribute ]
9
+ key.typeName shouldBe " sttp.attributes.SomeAttribute"
10
+ }
11
+ }
12
+
13
+ case class SomeAttribute (v : String )
You can’t perform that action at this time.
0 commit comments