question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tag should have an interface it inherits and testcase config should have tagsFn

See original GitHub issue

A super interface for Tag would allow people to make more interesting type hierarchies with their tags. Also, Test case config should have a tagsFn that passes the tags from defaultTestCaseConfig and allows each test case to override.

typealias TagsFn = (Set<Tag>) -> Set<Tag>

val a = Tag("a")
val b = Tag("b")

test("foo").config(tagsFn = { prev -> prev - a + b })

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jschneidereitcommented, Sep 14, 2021

SuperTag was just for illustrative purposes 🤣

0reactions
sksamuelcommented, Sep 19, 2021

As for the interface, changing Tag to an interface will break things (like the toString). So I think we might just be stuck. If you need inheritence, you could have a value inside your tag that is a sealed type.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AEM Tagging Framework | Adobe Experience Manager
A tag has optional meta information such as a title, localized titles, and a description. The title should be displayed in user interfaces...
Read more >
Can a C# class inherit attributes from its interface?
No. Whenever implementing an interface or overriding members in a derived class, you need to re-declare the attributes.
Read more >
VLAN tagging, routing, and general pain
I get the feeling I should be able to just tag all three VLANs on this one port eventually and have the router...
Read more >
Interfaces - define behavior for multiple types - Microsoft Learn
When interfaces declare a default implementation of a method, any class implementing that interface inherits that implementation (You need to ...
Read more >
Test Case Config | Kotest
Each test can be configured with various parameters. After the test name, invoke the config function passing in the parameters you wish to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found