aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/transforms/ManipulateNamesSpec.scala
diff options
context:
space:
mode:
authorJack Koenig2021-12-17 10:07:25 -0800
committerGitHub2021-12-17 18:07:25 +0000
commit37c8528cfed4395924820b54498ef761ded17393 (patch)
tree4d60a7a62aa77f75b714840f82b858d2fa192db1 /src/test/scala/firrtlTests/transforms/ManipulateNamesSpec.scala
parent6b82bcf6690e38ff472a39eaae7e6375ff7085e4 (diff)
Deprecate all mutable methods on RenameMap (#2444)
* Add renamemap.MutableRenameMap which includes these methods without deprecation * Deprecate Stringly typed RenameMap APIs which were accidentally undeprecated a while ago Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Diffstat (limited to 'src/test/scala/firrtlTests/transforms/ManipulateNamesSpec.scala')
-rw-r--r--src/test/scala/firrtlTests/transforms/ManipulateNamesSpec.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/scala/firrtlTests/transforms/ManipulateNamesSpec.scala b/src/test/scala/firrtlTests/transforms/ManipulateNamesSpec.scala
index fb516626..00849190 100644
--- a/src/test/scala/firrtlTests/transforms/ManipulateNamesSpec.scala
+++ b/src/test/scala/firrtlTests/transforms/ManipulateNamesSpec.scala
@@ -12,6 +12,7 @@ import firrtl.transforms.{
ManipulateNamesAllowlistResultAnnotation,
ManipulateNamesBlocklistAnnotation
}
+import firrtl.renamemap.MutableRenameMap
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
@@ -210,7 +211,7 @@ class ManipulateNamesSpec extends AnyFlatSpec with Matchers {
oldTargets = Seq(Seq(`~Foo|Bar`))
)
- val r = RenameMap()
+ val r = MutableRenameMap()
r.delete(`~Foo|prefix_Bar`)
a.update(r) should be(empty)
@@ -228,7 +229,7 @@ class ManipulateNamesSpec extends AnyFlatSpec with Matchers {
oldTargets = Seq(Seq(`~Foo|Bar`), Seq(`~Foo|Baz`))
)
- val r = RenameMap()
+ val r = MutableRenameMap()
r.delete(`~Foo|prefix_Bar`)
val ax = a.update(r).collect {