File: frame_test.go

package info (click to toggle)
golang-github-igm-sockjs-go 3.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 512 kB
  • sloc: javascript: 39; makefile: 5
file content (10 lines) | stat: -rw-r--r-- 211 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
package sockjs

import "testing"

func TestCloseFrame(t *testing.T) {
	cf := closeFrame(1024, "some close text")
	if cf != "c[1024,\"some close text\"]" {
		t.Errorf("Wrong close frame generated '%s'", cf)
	}
}