~wallyworld/gwacl/fix-request-eof

« back to all changes in this revision

Viewing changes to xmlobjects_test.go

  • Committer: Jeroen Vermeulen
  • Date: 2013-03-29 01:27:37 UTC
  • mto: This revision was merged to the branch mainline in revision 76.
  • Revision ID: jtv@canonical.com-20130329012737-3jnxwb3h06nd6epl
gofmt -s

Show diffs side-by-side

added added

removed removed

Lines of Context:
522
522
 
523
523
    expected := &Metadata{
524
524
        Items: []MetadataItem{
525
 
            MetadataItem{
 
525
            {
526
526
                XMLName: xml.Name{Local: "metadata-name"},
527
527
                Value:   "metadata-value",
528
528
            },
567
567
        },
568
568
        Metadata: Metadata{
569
569
            Items: []MetadataItem{
570
 
                MetadataItem{
 
570
                {
571
571
                    XMLName: xml.Name{Local: "metadata-name"},
572
572
                    Value:   "metadata-value",
573
573
                },
614
614
        Marker:     "marker-value",
615
615
        MaxResults: "max-results-value",
616
616
        Containers: []Container{
617
 
            Container{
 
617
            {
618
618
                XMLName: xml.Name{Local: "Container"},
619
619
                Name:    "name-value",
620
620
                URL:     "url-value",
627
627
                },
628
628
                Metadata: Metadata{
629
629
                    Items: []MetadataItem{
630
 
                        MetadataItem{
 
630
                        {
631
631
                            XMLName: xml.Name{Local: "metadata-name"},
632
632
                            Value:   "metadata-value",
633
633
                        },
702
702
    expected := GetBlockList{
703
703
        XMLName: xml.Name{Local: "BlockList"},
704
704
        CommittedBlocks: []Block{
705
 
            Block{
 
705
            {
706
706
                Name: "BlockId001",
707
707
                Size: "4194304"},
708
708
        },
709
709
        UncommittedBlocks: []Block{
710
 
            Block{
 
710
            {
711
711
                Name: "BlockId002",
712
712
                Size: "1024"},
713
713
        },