Skip to content

Commit

Permalink
Add codecov.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
SasinduDilshara committed Jul 4, 2024
1 parent e495136 commit b4339ef
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ensure all Java files use LF.
*.java eol=lf
18 changes: 10 additions & 8 deletions ballerina/csv_api.bal
Original file line number Diff line number Diff line change
Expand Up @@ -72,39 +72,41 @@ public isolated function parseStreamToList(stream<byte[], error?> s,
ParseOption options = {}, typedesc<anydata[][]> t = <>)
returns t|Error = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

# Convert value of type `record{}[]` to subtype of `record{}[]`.
# Convert value of type record{}[] to subtype of record{}[].
#
# + v - Source Ballerina record array value
# + s - Source Ballerina record array value
# + options - Options to be used for filtering in the projection
# + t - Target type
# + return - On success, returns value belonging to the given target type, else returns an `csv:Error` value.
public isolated function parseRecordAsRecordType(record{}[] s,
RecordAsRecordOption options = {}, typedesc<record{}[]> t = <>)
returns t|Error = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

# Convert value of type `record{}[]` to subtype of `anydata[][]`.
# Convert value of type record{}[] to subtype of anydata[][].
#
# + v - Source Ballerina record array value
# + s - Source Ballerina record array value
# + headerNames - The order of the header names in the source
# + options - Options to be used for filtering in the projection
# + t - Target type
# + return - On success, returns value belonging to the given target type, else returns an `csv:Error` value.
public isolated function parseRecordAsListType(record{}[] s, string[] headerNames,
Options options = {}, typedesc<anydata[][]> t = <>)
returns t|Error = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

# Convert value of type `string[][]` to subtype of `record{}[]`.
# Convert value of type string[][] to subtype of record{}[].
#
# + v - Source Ballerina string array of array value
# + s - Source Ballerina string array of array value
# + customHeaders - The order of the header names in the source
# + options - Options to be used for filtering in the projection
# + t - Target type
# + return - On success, returns value belonging to the given target type, else returns an `csv:Error` value.
public isolated function parseListAsRecordType(string[][] s, string[]? customHeaders = (),
ListAsRecordOption options = {}, typedesc<record{}[]> t = <>)
returns t|Error = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

# Convert value of type `string[][]` to subtype of `anydata[][]`.
# Convert value of type string[][] to subtype of anydata[][].
#
# + v - Source Ballerina string array of array value
# + s - Source Ballerina string array of array value
# + options - Options to be used for filtering in the projection
# + t - Target type
# + return - On success, returns value belonging to the given target type, else returns an `csv:Error` value.
Expand Down
6 changes: 0 additions & 6 deletions build-config/resources/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,3 @@ groupId = "io.ballerina.stdlib"
artifactId = "data.csv-native"
version = "@toml.version@"
path = "../native/build/libs/data.csv-native-@project.version@.jar"

[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "constraint-native"
version = "@constraint.version@"
path = "./lib/constraint-native-@stdlib.constraintnative.version@.jar"
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
precision: 2
round: down
range: "60...80"
status:
project:
default:
target: 80

0 comments on commit b4339ef

Please sign in to comment.