Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,12 @@ jobs:
go-version: '1.22'

- run: go mod download

- name: Vet
- run: go vet ./...

- name: Test
- run: go test ./...

- name: Build
- run: go build ./...
2 changes: 1 addition & 1 deletion internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func printServerInfo(info *ServerInfo) {
if info.ServerState != "" {
fmt.Printf("State: %s\n", info.ServerState)
}
fmt.Println("==========================\n")
fmt.Println("==========================")
}

// readNodeValue читает значение узла по Node ID
Expand Down
10 changes: 10 additions & 0 deletions internal/parser/parser_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package parser

import "testing"

func TestExample(t *testing.T) {
sum := 2 + 2
if sum != 4 {
t.Errorf("Expected 4, got %d", sum)
}
}