Skip to content

Commit

Permalink
Applied spotless kotlin for CI to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
adityanathan committed Sep 4, 2024
1 parent f4f3b72 commit 415e91b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package io.github.aplcornell.viaduct.backends.cleartext
import com.squareup.kotlinpoet.CodeBlock
import com.squareup.kotlinpoet.MemberName
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import com.squareup.kotlinpoet.STRING
import com.squareup.kotlinpoet.TypeName
import com.squareup.kotlinpoet.asClassName
import com.squareup.kotlinpoet.asTypeName
import io.github.aplcornell.viaduct.circuitcodegeneration.AbstractCodeGenerator
Expand All @@ -14,6 +12,7 @@ import io.github.aplcornell.viaduct.circuitcodegeneration.UnsupportedCommunicati
import io.github.aplcornell.viaduct.circuitcodegeneration.kotlinType
import io.github.aplcornell.viaduct.circuitcodegeneration.receiveExpected
import io.github.aplcornell.viaduct.circuitcodegeneration.receiveReplicated
import io.github.aplcornell.viaduct.circuitcodegeneration.typeTranslator
import io.github.aplcornell.viaduct.runtime.commitment.Commitment
import io.github.aplcornell.viaduct.runtime.commitment.Committed
import io.github.aplcornell.viaduct.syntax.BinaryOperator
Expand All @@ -23,10 +22,7 @@ import io.github.aplcornell.viaduct.syntax.UnaryOperator
import io.github.aplcornell.viaduct.syntax.circuit.OperatorNode
import io.github.aplcornell.viaduct.syntax.operators.Maximum
import io.github.aplcornell.viaduct.syntax.operators.Minimum
import io.github.aplcornell.viaduct.syntax.types.ValueType
import io.github.aplcornell.viaduct.backends.commitment.Commitment as CommitmentProtocol
import io.github.aplcornell.viaduct.circuitcodegeneration.typeTranslator


class CleartextCircuitCodeGenerator(context: CodeGeneratorContext) : AbstractCodeGenerator(context) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CommitmentCircuitCodeGenerator(context: CodeGeneratorContext) : AbstractCo
return super.storageType(protocol, sourceType)

Check warning on line 34 in compiler/src/main/kotlin/io/github/aplcornell/viaduct/backends/commitment/CommitmentCircuitCodeGenerator.kt

View check run for this annotation

Codecov / codecov/patch

compiler/src/main/kotlin/io/github/aplcornell/viaduct/backends/commitment/CommitmentCircuitCodeGenerator.kt#L34

Added line #L34 was not covered by tests
}

override fun import(protocol: Protocol, arguments: List<Argument>, ): Pair<CodeBlock, List<CodeBlock>> {
override fun import(protocol: Protocol, arguments: List<Argument>): Pair<CodeBlock, List<CodeBlock>> {
throw UnsupportedCommunicationException(arguments.first().protocol, protocol, arguments.first().sourceLocation)

Check warning on line 38 in compiler/src/main/kotlin/io/github/aplcornell/viaduct/backends/commitment/CommitmentCircuitCodeGenerator.kt

View check run for this annotation

Codecov / codecov/patch

compiler/src/main/kotlin/io/github/aplcornell/viaduct/backends/commitment/CommitmentCircuitCodeGenerator.kt#L38

Added line #L38 was not covered by tests
}

Expand Down

0 comments on commit 415e91b

Please sign in to comment.