GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — openrtb/content_test.go at main · bsm/openrtb
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Expand file tree/ Copy pathcontent_test.goMore file actions 55 lines (49 loc) · 1.28 KB / Copy pathcontent_test.goFile metadata and controls55 lines (49 loc) · 1.28 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 package openrtb_test import ( "reflect" "testing" . "github.com/bsm/openrtb/v3" ) func TestContent(t *testing.T) { var subject *Content if err := fixture("content", &subject); err != nil { t.Fatalf("expected no error, got %v", err) } exp := &Content{ ID: "1", Title: "Video", Producer: &Producer{ ID: "agltb3B1Yi1pbmNyDAsSA0FwcBiJkfTUCV", Name: "yahoo", Domain: "www.yahoo.com", }, } if got := subject; !reflect.DeepEqual(exp, got) { t.Errorf("expected %+v, got %+v", exp, got) } } func TestContent_quoted(t *testing.T) { var subject *Content if err := fixture("content.quoted", &subject); err != nil { t.Fatalf("expected no error, got %v", err) } exp := &Content{ Keywords: "Orwell, 1984", UserRating: "3", Episode: 1, Title: "This is the video title", URL: "http://cdnp.tremormedia.com/video/1984.flv", LiveStream: 0, ContentRating: "G", Length: 129, Series: "book reading", VideoQuality: 2, Context: 1, Season: "1", SourceRelationship: 0, ID: "eb9f13ede5fd225333971523f6042f9d", } if got := subject; !reflect.DeepEqual(exp, got) { t.Errorf("expected %+v, got %+v", exp, got) } } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |