EMMA Coverage Report (generated Mon Nov 01 16:48:29 PDT 2010)
[all classes][com.google.caja.service]

COVERAGE SUMMARY FOR SOURCE FILE [AbstractCajolingHandlerTest.java]

nameclass, %method, %block, %line, %
AbstractCajolingHandlerTest.java100% (1/1)100% (2/2)100% (28/28)100% (10/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractCajolingHandlerTest100% (1/1)100% (2/2)100% (28/28)100% (10/10)
AbstractCajolingHandlerTest (): void 100% (1/1)100% (3/3)100% (1/1)
testCheckIdentifier (): void 100% (1/1)100% (25/25)100% (9/9)

1// Copyright (C) 2010 Google Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14 
15package com.google.caja.service;
16 
17import com.google.caja.util.CajaTestCase;
18 
19/**
20 * @author ihab.awad@google.com (Ihab Awad)
21 */
22public class AbstractCajolingHandlerTest extends CajaTestCase {
23 
24  public void testCheckIdentifier() throws Exception {
25    assertTrue(AbstractCajolingHandler.checkIdentifier("f"));
26    assertTrue(AbstractCajolingHandler.checkIdentifier("f$_"));
27 
28    assertFalse(AbstractCajolingHandler.checkIdentifier("1"));
29    assertFalse(AbstractCajolingHandler.checkIdentifier("1a"));
30    assertFalse(AbstractCajolingHandler.checkIdentifier("a b"));
31    assertFalse(AbstractCajolingHandler.checkIdentifier("a,b"));
32    assertFalse(AbstractCajolingHandler.checkIdentifier("a=0,b"));
33    assertFalse(AbstractCajolingHandler.checkIdentifier("a(b)"));
34  }
35}

[all classes][com.google.caja.service]
EMMA 2.0.5312 (C) Vladimir Roubtsov