atrium icon indicating copy to clipboard operation
atrium copied to clipboard

Add feature extractors for SQLException

Open vlsi opened this issue 2 years ago • 6 comments

Platform (all, jvm, js): jvm Extension (none, kotlin 1.3): none

Code related feature

import java.sql.SQLException

val Expect<SQLException>.errorCode: FeatureExpect<SQLException, Int>
    get() = feature("errorCode", SQLException::getErrorCode)

fun Expect<SQLException>.errorCode(assertionCreator: Expect<Int>.() -> Unit) =
    feature("errorCode", SQLException::getErrorCode, assertionCreator)

val Expect<SQLException>.sqlState: FeatureExpect<SQLException, String>
    get() = feature("sqlCode", SQLException::getSQLState)

fun Expect<SQLException>.sqlState(assertionCreator: Expect<String>.() -> Unit) =
    feature("sqlCode", SQLException::getSQLState, assertionCreator)

I wonder if that can be autogenerated with something like https://github.com/robstoll/atrium/issues/1358 when building Atrium. Apparently, it does not make sense for everybody to re-generate the extractors, however, it might be nice if the accessors like that could be auto-generated in Atrium.

vlsi avatar May 03 '23 13:05 vlsi

I don't see a reason why we cannot generate it but until we have #1358 someone could already start and implement it manually (including samples etc.) :slightly_smiling_face:

robstoll avatar May 03 '23 19:05 robstoll

can I work on this?

rafiya2003 avatar May 13 '23 10:05 rafiya2003

sure, let me know in case you need more info in the description (you can also take a look at older good first issues.

robstoll avatar May 13 '23 15:05 robstoll

@rafiya2003 do you need help?

robstoll avatar Jun 29 '23 20:06 robstoll

yes

rafiya2003 avatar Jul 01 '23 09:07 rafiya2003

what help do you need? have you started with something?

robstoll avatar Jul 01 '23 15:07 robstoll

Hey, can I work on this?

BereKanters avatar Jun 12 '24 09:06 BereKanters

@BereKanters sure are you still working in the other one (build matrix)? Otherwise unasign please

robstoll avatar Jun 12 '24 12:06 robstoll