Skip to content

Commit b6ac5b8

Browse files
committed
add test coverage badge
1 parent f0959ac commit b6ac5b8

File tree

3 files changed

+8
-29
lines changed

3 files changed

+8
-29
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: vladopajic/go-test-coverage@v2
2323
with:
2424
profile: cover.out
25-
threshold-total: 95
25+
threshold-total: 75
2626

2727
## when token is not specified (value '') this feature is turned off
2828
## in this example badge is created and committed only for main branch

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
<center>
2-
<h1>excel-formula-parser</h1>
3-
<i>A parser for excel-formula written in pure Go</i>
4-
<p>
5-
<img src="https://goreportcard.com/badge/github.com/link-duan/excel-formula-parser"/>
6-
<img src="https://github.com/link-duan/excel-formula-parser/actions/workflows/go.yml/badge.svg"/>
7-
</p>
8-
</center>
1+
<h1 align="center">excel-formula-parser</h1>
2+
<p align="center"><i>A parser for excel-formula written in pure Go</i></p>
3+
<p align="center">
4+
<img src="https://goreportcard.com/badge/github.com/link-duan/excel-formula-parser"/>
5+
<img src="https://github.com/link-duan/excel-formula-parser/actions/workflows/go.yml/badge.svg"/>
6+
<img src="https://raw.githubusercontent.com/link-duan/excel-formula-parser/badges/.badges/main/coverage.svg"/>
7+
</p>
98

109
## Supportted syntax
1110
- [x] Math operations (eg. `+ - * / ^ %`)

ast.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -221,23 +221,3 @@ type CellExpr struct {
221221
func (c *CellExpr) String() string {
222222
return fmt.Sprintf("CellExpr(%s)", c.Ident.Raw)
223223
}
224-
225-
type AbsoluteRowExpr struct {
226-
*baseNode
227-
Ident *Token // The absolute row reference (e.g., $1, $2)
228-
Row int // starts from 0
229-
}
230-
231-
func (a *AbsoluteRowExpr) String() string {
232-
return fmt.Sprintf("AbsoluteRowExpr(%s)", a.Ident.Raw)
233-
}
234-
235-
type AbsoluteColExpr struct {
236-
*baseNode
237-
Ident *Token // The absolute column reference (e.g., $A, $B)
238-
Col int // starts from 0
239-
}
240-
241-
func (a *AbsoluteColExpr) String() string {
242-
return fmt.Sprintf("AbsoluteColExpr(%s)", a.Ident.Raw)
243-
}

0 commit comments

Comments
 (0)